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

@ -76,9 +76,9 @@ public:
bool shouldRender(F32 camDist);
void update( const SceneRenderState *state ) {}
void render( F32 camDist, const TSRenderState &rdata );
U32 getLastRenderTime() const { return mLastRenderTime; }
void update( const SceneRenderState *state ) override {}
void render( F32 camDist, const TSRenderState &rdata ) override;
U32 getLastRenderTime() const override { return mLastRenderTime; }
static void generateGenericShadowBitmap(S32 dim);
static void deleteGenericShadowBitmap();

View file

@ -37,10 +37,10 @@ public:
static LightInfoExType Type;
// LightInfoEx
virtual void set( const LightInfoEx *ex );
virtual const LightInfoExType& getType() const { return Type; }
virtual void packUpdate( BitStream *stream ) const;
virtual void unpackUpdate( BitStream *stream );
void set( const LightInfoEx *ex ) override;
const LightInfoExType& getType() const override { return Type; }
void packUpdate( BitStream *stream ) const override;
void unpackUpdate( BitStream *stream ) override;
public:
// We're leaving these public for easy access

View file

@ -115,12 +115,12 @@ public:
ProjectedShadow( SceneObject *object );
virtual ~ProjectedShadow();
bool shouldRender( const SceneRenderState *state );
bool shouldRender( const SceneRenderState *state ) override;
void update( const SceneRenderState *state );
void render( F32 camDist, const TSRenderState &rdata );
U32 getLastRenderTime() const { return mLastRenderTime; }
const F32 getScore() const { return mScore; }
void update( const SceneRenderState *state ) override;
void render( F32 camDist, const TSRenderState &rdata ) override;
U32 getLastRenderTime() const override { return mLastRenderTime; }
const F32 getScore() const override { return mScore; }
};

View file

@ -201,7 +201,7 @@ public:
sgObjectIndex = objectIndex;
sgEvent = event;
}
void process(SimObject * object)
void process(SimObject * object) override
{
AssertFatal(object, "SceneLightingProcessEvent:: null event object!");
if(!object)