mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 03:35:09 +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
@@ -45,7 +45,7 @@ struct DirtyGrid
|
||||
uint8 * Blocks;
|
||||
};
|
||||
|
||||
class RainDrawer : public IRainDrawer
|
||||
class RainDrawer final : public IRainDrawer
|
||||
{
|
||||
private:
|
||||
struct RainPixel
|
||||
@@ -156,7 +156,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class SoftwareDrawingContext : public IDrawingContext
|
||||
class SoftwareDrawingContext final : public IDrawingContext
|
||||
{
|
||||
private:
|
||||
SoftwareDrawingEngine * _engine;
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
void SetDPI(rct_drawpixelinfo * dpi);
|
||||
};
|
||||
|
||||
class SoftwareDrawingEngine : public IDrawingEngine
|
||||
class SoftwareDrawingEngine final : public IDrawingEngine
|
||||
{
|
||||
private:
|
||||
bool _hardwareDisplay;
|
||||
|
||||
Reference in New Issue
Block a user