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

@ -54,7 +54,7 @@ class GuiBubbleTextCtrl : public GuiTextCtrl
GuiBubbleTextCtrl() :mInAction(false), mDlg(NULL), mPopup(NULL), mMLText(NULL) {}
virtual void onMouseDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
};
#endif /* _GUI_BUBBLE_TEXT_CONTROL_H_ */

View file

@ -48,10 +48,10 @@ public:
GuiInputCtrl();
// GuiControl.
virtual bool onWake();
virtual void onSleep();
bool onWake() override;
void onSleep() override;
virtual bool onInputEvent( const InputEventInfo &event );
bool onInputEvent( const InputEventInfo &event ) override;
static void initPersistFields();

View file

@ -52,15 +52,15 @@ class GuiMouseEventCtrl : public GuiControl
DECLARE_CALLBACK( void, onRightMouseDragged, ( S32 modifier, Point2I mousePoint, S32 mouseClickCount ));
// GuiControl
void onMouseDown(const GuiEvent & event);
void onMouseUp(const GuiEvent & event);
void onMouseMove(const GuiEvent & event);
void onMouseDragged(const GuiEvent & event);
void onMouseEnter(const GuiEvent & event);
void onMouseLeave(const GuiEvent & event);
void onRightMouseDown(const GuiEvent & event);
void onRightMouseUp(const GuiEvent & event);
void onRightMouseDragged(const GuiEvent & event);
void onMouseDown(const GuiEvent & event) override;
void onMouseUp(const GuiEvent & event) override;
void onMouseMove(const GuiEvent & event) override;
void onMouseDragged(const GuiEvent & event) override;
void onMouseEnter(const GuiEvent & event) override;
void onMouseLeave(const GuiEvent & event) override;
void onRightMouseDown(const GuiEvent & event) override;
void onRightMouseUp(const GuiEvent & event) override;
void onRightMouseDragged(const GuiEvent & event) override;
static void initPersistFields();

View file

@ -49,8 +49,8 @@ class GuiRenderTargetVizCtrl : public GuiControl
public:
DECLARE_CONOBJECT(GuiRenderTargetVizCtrl);
GuiRenderTargetVizCtrl();
bool onWake();
void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onRender(Point2I offset, const RectI &updateRect) override;
static void initPersistFields();
};

View file

@ -91,8 +91,8 @@ class MessageVector : public SimObject
//-------------------------------------- Internal interface
protected:
bool onAdd();
void onRemove();
bool onAdd() override;
void onRemove() override;
private:
struct SpectatorRef {