mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Mark classes as final to help devirtualisation
This commit is contained in:
@@ -92,7 +92,7 @@ using ObjectEntryMap = std::unordered_map<rct_object_entry, size_t, ObjectEntryH
|
||||
|
||||
static void ReportMissingObject(const rct_object_entry * entry);
|
||||
|
||||
class ObjectRepository : public IObjectRepository
|
||||
class ObjectRepository final : public IObjectRepository
|
||||
{
|
||||
IPlatformEnvironment * _env = nullptr;
|
||||
std::vector<ObjectRepositoryItem> _items;
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
_env = env;
|
||||
}
|
||||
|
||||
~ObjectRepository()
|
||||
~ObjectRepository() final
|
||||
{
|
||||
ClearItems();
|
||||
}
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const ObjectRepositoryItem * FindObject(const rct_object_entry * objectEntry) const override
|
||||
const ObjectRepositoryItem * FindObject(const rct_object_entry * objectEntry) const override final
|
||||
{
|
||||
auto kvp = _itemMap.find(*objectEntry);
|
||||
if (kvp != _itemMap.end())
|
||||
|
||||
Reference in New Issue
Block a user