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

@ -62,8 +62,8 @@ public:
EventManagerListener(): mSubscribers(64, false) {}
/// Called by the EventManager queue when an event is triggered. Calls all listeners subscribed to the triggered event.
virtual bool onMessageReceived( StringTableEntry queue, const char* event, const char* data );
virtual bool onMessageObjectReceived( StringTableEntry queue, Message *msg ) { return true; };
bool onMessageReceived( StringTableEntry queue, const char* event, const char* data ) override;
bool onMessageObjectReceived( StringTableEntry queue, Message *msg ) override { return true; };
};
/// @addtogroup msgsys Message System

View file

@ -109,8 +109,8 @@ public:
//-----------------------------------------------------------------------------
static SimObjectId getNextMessageID();
virtual bool onAdd();
virtual void onRemove();
bool onAdd() override;
void onRemove() override;
//-----------------------------------------------------------------------------
/// @brief Get the type of the message

View file

@ -89,10 +89,10 @@ public:
DECLARE_CONOBJECT(CompoundUndoAction);
virtual void addAction( UndoAction *action );
virtual void undo();
virtual void redo();
void undo() override;
void redo() override;
virtual void onDeleteNotify( SimObject* object );
void onDeleteNotify( SimObject* object ) override;
U32 getNumChildren() const { return mChildren.size(); }
};
@ -215,10 +215,10 @@ public:
{
}
virtual void undo() { Con::executef(this, "undo"); };
virtual void redo() { Con::executef(this, "redo"); }
void undo() override { Con::executef(this, "undo"); };
void redo() override { Con::executef(this, "redo"); }
virtual bool onAdd()
bool onAdd() override
{
// Let Parent Do Work.
if(!Parent::onAdd())
@ -233,7 +233,7 @@ public:
return true;
};
virtual void onRemove()
void onRemove() override
{
if (mUndoManager)
mUndoManager->removeAction((UndoAction*)this, true);