1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Mark a bunch of classes as final

This commit is contained in:
sfan5 2024-09-01 15:17:54 +02:00
parent 3fb4049612
commit e55fb6da71
15 changed files with 18 additions and 17 deletions

View file

@ -269,11 +269,12 @@ public:
JoystickController joystick;
KeyCache keycache;
};
/*
Separated input handler
Separated input handler implementations
*/
class RealInputHandler : public InputHandler
class RealInputHandler final : public InputHandler
{
public:
RealInputHandler(MyEventReceiver *receiver) : m_receiver(receiver)
@ -372,7 +373,7 @@ private:
v2s32 m_mousepos;
};
class RandomInputHandler : public InputHandler
class RandomInputHandler final : public InputHandler
{
public:
RandomInputHandler() = default;

View file

@ -39,7 +39,7 @@ struct TextureInfo
};
// TextureSource
class TextureSource : public IWritableTextureSource
class TextureSource final : public IWritableTextureSource
{
public:
TextureSource();

View file

@ -234,7 +234,7 @@ class Peer : public IPeer {
class UDPPeer;
class Connection : public IConnection
class Connection final : public IConnection
{
public:
friend class ConnectionSendThread;