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:
committed by
Ted John
parent
4b92e5e820
commit
71d0861be1
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user