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

@ -101,8 +101,8 @@ public:
TYPE getPosition( U32 idx );
// CatmullRomBase
void clear();
F32 segmentArcLength( U32 i, F32 u1, F32 u2 );
void clear() override;
F32 segmentArcLength( U32 i, F32 u1, F32 u2 ) override;
protected:

View file

@ -49,7 +49,7 @@ public:
// MatInstanceHook
virtual ~ImposterCaptureMaterialHook();
virtual const MatInstanceHookType& getType() const { return Type; }
const MatInstanceHookType& getType() const override { return Type; }
/// The material hook type.
static const MatInstanceHookType Type;

View file

@ -65,8 +65,8 @@ public:
static void initPersistFields();
virtual bool onMessageReceived(StringTableEntry queue, const char *event, const char *data);
virtual bool onMessageObjectReceived(StringTableEntry queue, Message *msg);
bool onMessageReceived(StringTableEntry queue, const char *event, const char *data) override;
bool onMessageObjectReceived(StringTableEntry queue, Message *msg) override;
};
// @}

View file

@ -66,16 +66,16 @@ public:
///////////////////////////////////////////////////////////////////////
virtual bool onAdd();
virtual void onRemove();
bool onAdd() override;
void onRemove() override;
///////////////////////////////////////////////////////////////////////
virtual bool onMessageReceived(StringTableEntry queue, const char* event, const char* data);
virtual bool onMessageObjectReceived(StringTableEntry queue, Message *msg);
bool onMessageReceived(StringTableEntry queue, const char* event, const char* data) override;
bool onMessageObjectReceived(StringTableEntry queue, Message *msg) override;
virtual void onAddToQueue(StringTableEntry queue);
virtual void onRemoveFromQueue(StringTableEntry queue);
void onAddToQueue(StringTableEntry queue) override;
void onRemoveFromQueue(StringTableEntry queue) override;
};
// @}

View file

@ -164,7 +164,7 @@ class CSVSamplerBackend : public ISamplerBackend
}
/// Open the file and emit a row with the names of all enabled keys.
virtual bool init( const char* fileName )
bool init( const char* fileName ) override
{
if( !mStream.open( fileName, Torque::FS::File::Write ) )
{
@ -193,11 +193,11 @@ class CSVSamplerBackend : public ISamplerBackend
return true;
}
virtual void beginFrame()
void beginFrame() override
{
}
virtual void endFrame()
void endFrame() override
{
char buffer[ 256 ];
@ -260,19 +260,19 @@ class CSVSamplerBackend : public ISamplerBackend
return NULL; // silence compiler
}
virtual void sample( U32 key, bool value )
void sample( U32 key, bool value ) override
{
lookup( key )->set( value );
}
virtual void sample( U32 key, S32 value )
void sample( U32 key, S32 value ) override
{
lookup( key )->set( value );
}
virtual void sample( U32 key, F32 value )
void sample( U32 key, F32 value ) override
{
lookup( key )->set( value );
}
virtual void sample( U32 key, const char* value )
void sample( U32 key, const char* value ) override
{
lookup( key )->set( value );
}