rest of virtuals removed

virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
This commit is contained in:
marauder2k7 2024-03-18 18:40:22 +00:00
parent efbe5e90f5
commit 2b295fb7f0
454 changed files with 4162 additions and 4156 deletions

View file

@ -44,7 +44,7 @@ public:
virtual ~FileStreamObject();
DECLARE_CONOBJECT(FileStreamObject);
virtual bool onAdd();
bool onAdd() override;
//-----------------------------------------------------------------------------
/// @brief Open a file

View file

@ -81,16 +81,16 @@ class MemStream : public Stream
protected:
// Stream
bool _read( const U32 in_numBytes, void *out_pBuffer );
bool _write( const U32 in_numBytes, const void *in_pBuffer );
bool _read( const U32 in_numBytes, void *out_pBuffer ) override;
bool _write( const U32 in_numBytes, const void *in_pBuffer ) override;
public:
// Stream
bool hasCapability( const Capability caps ) const;
U32 getPosition() const;
bool setPosition( const U32 in_newPosition );
U32 getStreamSize();
bool hasCapability( const Capability caps ) const override;
U32 getPosition() const override;
bool setPosition( const U32 in_newPosition ) override;
U32 getStreamSize() override;
/// Returns the memory buffer.
void *getBuffer() { return mBufferBase; }

View file

@ -53,7 +53,7 @@ public:
DECLARE_CONOBJECT(StreamObject);
virtual bool onAdd();
bool onAdd() override;
/// Set the stream to allow reuse of the object
void setStream(Stream *stream) { mStream = stream; }