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

@ -13,7 +13,7 @@ namespace scene
{ {
//! Template implementation of the IIndexBuffer interface //! Template implementation of the IIndexBuffer interface
template <class T> template <class T>
class CIndexBuffer : public IIndexBuffer class CIndexBuffer final : public IIndexBuffer
{ {
public: public:
//! Default constructor for empty buffer //! Default constructor for empty buffer

@ -15,7 +15,7 @@ namespace scene
{ {
//! Template implementation of the IMeshBuffer interface //! Template implementation of the IMeshBuffer interface
template <class T> template <class T>
class CMeshBuffer : public IMeshBuffer class CMeshBuffer final : public IMeshBuffer
{ {
public: public:
//! Default constructor for empty meshbuffer //! Default constructor for empty meshbuffer

@ -13,7 +13,7 @@ namespace scene
{ {
//! Template implementation of the IVertexBuffer interface //! Template implementation of the IVertexBuffer interface
template <class T> template <class T>
class CVertexBuffer : public IVertexBuffer class CVertexBuffer final : public IVertexBuffer
{ {
public: public:
//! Default constructor for empty buffer //! Default constructor for empty buffer

@ -15,7 +15,7 @@ namespace scene
{ {
//! Simple implementation of the IAnimatedMesh interface. //! Simple implementation of the IAnimatedMesh interface.
struct SAnimatedMesh : public IAnimatedMesh struct SAnimatedMesh final : public IAnimatedMesh
{ {
//! constructor //! constructor
SAnimatedMesh(scene::IMesh *mesh = 0, scene::E_ANIMATED_MESH_TYPE type = scene::EAMT_UNKNOWN) : SAnimatedMesh(scene::IMesh *mesh = 0, scene::E_ANIMATED_MESH_TYPE type = scene::EAMT_UNKNOWN) :

@ -14,7 +14,7 @@ namespace irr
namespace scene namespace scene
{ {
//! Simple implementation of the IMesh interface. //! Simple implementation of the IMesh interface.
struct SMesh : public IMesh struct SMesh final : public IMesh
{ {
//! constructor //! constructor
SMesh() SMesh()

@ -16,7 +16,7 @@ namespace scene
{ {
//! A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime //! A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime
struct SSkinMeshBuffer : public IMeshBuffer struct SSkinMeshBuffer final : public IMeshBuffer
{ {
//! Default constructor //! Default constructor
SSkinMeshBuffer(video::E_VERTEX_TYPE vt = video::EVT_STANDARD) : SSkinMeshBuffer(video::E_VERTEX_TYPE vt = video::EVT_STANDARD) :

@ -17,7 +17,7 @@ class CZipReader;
/*! /*!
FileSystem which uses normal files and one zipfile FileSystem which uses normal files and one zipfile
*/ */
class CFileSystem : public IFileSystem class CFileSystem final : public IFileSystem
{ {
public: public:
//! constructor //! constructor

@ -21,7 +21,7 @@ inline bool checkImageDimensions(u32 width, u32 height)
//! IImage implementation with a lot of special image operations for //! IImage implementation with a lot of special image operations for
//! 16 bit A1R5G5B5/32 Bit A8R8G8B8 images, which are used by the SoftwareDevice. //! 16 bit A1R5G5B5/32 Bit A8R8G8B8 images, which are used by the SoftwareDevice.
class CImage : public IImage class CImage final : public IImage
{ {
public: public:
//! constructor from raw image data //! constructor from raw image data

@ -20,7 +20,7 @@ namespace io
This can be useful, for example for reading uncompressed files This can be useful, for example for reading uncompressed files
in an archive (zip, tar). in an archive (zip, tar).
!*/ !*/
class CLimitReadFile : public IReadFile class CLimitReadFile final : public IReadFile
{ {
public: public:
CLimitReadFile(IReadFile *alreadyOpenedFile, long pos, long areaSize, const io::path &name); CLimitReadFile(IReadFile *alreadyOpenedFile, long pos, long areaSize, const io::path &name);

@ -17,7 +17,7 @@ namespace io
/*! /*!
Class for reading from memory. Class for reading from memory.
*/ */
class CMemoryReadFile : public IMemoryReadFile class CMemoryReadFile final : public IMemoryReadFile
{ {
public: public:
//! Constructor //! Constructor

@ -17,7 +17,7 @@ namespace io
/*! /*!
Class for reading a real file from disk. Class for reading a real file from disk.
*/ */
class CReadFile : public IReadFile class CReadFile final : public IReadFile
{ {
public: public:
CReadFile(const io::path &fileName); CReadFile(const io::path &fileName);

@ -25,7 +25,7 @@ class IMeshCache;
/*! /*!
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff. The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
*/ */
class CSceneManager : public ISceneManager, public ISceneNode class CSceneManager final : public ISceneManager, public ISceneNode
{ {
public: public:
//! constructor //! constructor

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

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

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