virtuals removed

virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
This commit is contained in:
marauder2k7 2024-03-18 18:13:00 +00:00
parent 88a43f3137
commit efbe5e90f5
255 changed files with 2164 additions and 2164 deletions

View file

@ -95,7 +95,7 @@ class SFX3DWorld : public SceneTracker
FreeListChunker< SFX3DObject > mChunker;
// SceneTracker.
virtual bool _isTrackableObject( SceneObject* object ) const;
bool _isTrackableObject( SceneObject* object ) const override;
public:
@ -119,9 +119,9 @@ class SFX3DWorld : public SceneTracker
void debugDump();
// SceneTracker.
virtual void registerObject( SceneObject* object );
virtual void unregisterObject( SceneObject* object );
virtual void updateObject( SceneObjectLink* object );
void registerObject( SceneObject* object ) override;
void unregisterObject( SceneObject* object ) override;
void updateObject( SceneObjectLink* object ) override;
};

View file

@ -53,8 +53,8 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeSoundControls);
static void consoleInit();
virtual GuiControl* constructEditControl();
virtual bool updateRects();
GuiControl* constructEditControl() override;
bool updateRects() override;
};
//RDTODO: make 3D sound emitters yield their source when being culled
@ -244,16 +244,16 @@ class SFXEmitter : public SceneObject
void stop();
// SimObject
bool onAdd();
void onRemove();
void onStaticModified( const char *slotName, const char *newValue = NULL );
U32 packUpdate( NetConnection *conn, U32 mask, BitStream *stream );
void unpackUpdate( NetConnection *conn, BitStream *stream );
void setTransform( const MatrixF &mat );
void setScale( const VectorF &scale );
bool containsPoint( const Point3F& point ) { return false; }
void prepRenderImage( SceneRenderState* state );
void inspectPostApply();
bool onAdd() override;
void onRemove() override;
void onStaticModified( const char *slotName, const char *newValue = NULL ) override;
U32 packUpdate( NetConnection *conn, U32 mask, BitStream *stream ) override;
void unpackUpdate( NetConnection *conn, BitStream *stream ) override;
void setTransform( const MatrixF &mat ) override;
void setScale( const VectorF &scale ) override;
bool containsPoint( const Point3F& point ) override { return false; }
void prepRenderImage( SceneRenderState* state ) override;
void inspectPostApply() override;
static void initPersistFields();
static void consoleInit();

View file

@ -50,7 +50,7 @@ class SFXSpace : public SceneAmbientSoundObject< ScenePolyhedralObject< SceneSpa
protected:
// SceneSpace.
virtual ColorI _getDefaultEditorSolidColor() const { return ColorI( 244, 135, 18, 45 ); }
ColorI _getDefaultEditorSolidColor() const override { return ColorI( 244, 135, 18, 45 ); }
public: