1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

CppCheck fixes

This commit is contained in:
Broxzier
2016-11-30 23:32:47 +01:00
parent c44c93a627
commit 6c29bdbf21
109 changed files with 825 additions and 1120 deletions

View File

@@ -40,7 +40,7 @@ private:
Object * * _loadedObjects = nullptr;
public:
ObjectManager(IObjectRepository * objectRepository)
explicit ObjectManager(IObjectRepository * objectRepository)
{
Guard::ArgumentNotNull(objectRepository);
@@ -559,7 +559,7 @@ extern "C"
uint8 object_manager_get_loaded_object_entry_index(const void * loadedObject)
{
IObjectManager * objectManager = GetObjectManager();
const Object * object = (const Object *)loadedObject;
const Object * object = static_cast<const Object *>(loadedObject);
uint8 entryIndex = objectManager->GetLoadedObjectEntryIndex(object);
return entryIndex;
}