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

@ -37,7 +37,7 @@ protected:
public:
DECLARE_CONOBJECT(GuiBorderButtonCtrl);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};
IMPLEMENT_CONOBJECT(GuiBorderButtonCtrl);

View file

@ -103,18 +103,18 @@ public:
static void initPersistFields();
//Parent methods
bool onWake();
void onSleep();
void inspectPostApply();
void onStaticModified(const char* slotName, const char* newValue = NULL);
bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool onWake() override;
void onSleep() override;
void inspectPostApply() override;
void onStaticModified(const char* slotName, const char* newValue = NULL) override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void setBitmap(const char *name);
// Used to set the optional error bitmap
void setErrorBitmap(const char *name);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
void onImageChanged() {}
};

View file

@ -57,8 +57,8 @@ class GuiSwatchButtonCtrl : public GuiButtonBaseCtrl
void setColor( const LinearColorF &color ) { mSwatchColor = color; }
// GuiButtonBaseCtrl
virtual bool onWake();
virtual void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onRender(Point2I offset, const RectI &updateRect) override;
static void initPersistFields();

View file

@ -34,8 +34,8 @@ public:
DECLARE_CONOBJECT(GuiToggleButtonCtrl);
GuiToggleButtonCtrl();
virtual void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
};
#endif //_GUITOGGLEBUTTONCTRL_H_

View file

@ -60,16 +60,16 @@ public:
static void initPersistFields();
//Parent methods
bool onWake();
void onSleep();
void inspectPostApply();
bool onWake() override;
void onSleep() override;
void inspectPostApply() override;
void setNormalBitmap( StringTableEntry bitmapName );
void setLoweredBitmap( StringTableEntry bitmapName );
void setHoverBitmap( StringTableEntry bitmapName );
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};