1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Mark classes as final

This may hint compiler to de-virtualise some calls.
This commit is contained in:
Michał Janiszewski
2016-10-04 19:14:29 +02:00
committed by Ted John
parent 4b92e5e820
commit 71d0861be1
35 changed files with 52 additions and 52 deletions

View File

@@ -23,13 +23,13 @@ extern "C"
#include "../world/scenery.h"
}
class FootpathItemObject : public SceneryObject
class FootpathItemObject final : public SceneryObject
{
private:
rct_scenery_entry _legacyType = { 0 };
public:
explicit FootpathItemObject(const rct_object_entry &entry) : SceneryObject(entry) { };
explicit FootpathItemObject(const rct_object_entry &entry) : SceneryObject(entry) { }
void * GetLegacyData() override { return &_legacyType; }