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 <class T>
class CIndexBuffer : public IIndexBuffer
class CIndexBuffer final : public IIndexBuffer
{
public:
//! Default constructor for empty buffer

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

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

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

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

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

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

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

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

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

@ -17,7 +17,7 @@ namespace io
/*!
Class for reading a real file from disk.
*/
class CReadFile : public IReadFile
class CReadFile final : public IReadFile
{
public:
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.
*/
class CSceneManager : public ISceneManager, public ISceneNode
class CSceneManager final : public ISceneManager, public ISceneNode
{
public:
//! constructor

@ -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;

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

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