mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-27 08:09:31 +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
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
// @}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
// @}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue