mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
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:
parent
efbe5e90f5
commit
2b295fb7f0
454 changed files with 4162 additions and 4156 deletions
|
|
@ -44,7 +44,7 @@ public:
|
|||
virtual ~FileStreamObject();
|
||||
DECLARE_CONOBJECT(FileStreamObject);
|
||||
|
||||
virtual bool onAdd();
|
||||
bool onAdd() override;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/// @brief Open a 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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue