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

@ -43,9 +43,9 @@ public:
/*C*/ afxF_DragData();
/*C*/ afxF_DragData(const afxF_DragData&, bool = false);
virtual void packData(BitStream* stream);
virtual void unpackData(BitStream* stream);
virtual afxForceData* cloneAndPerformSubstitutions(const SimObject*, S32 index=0);
void packData(BitStream* stream) override;
void unpackData(BitStream* stream) override;
afxForceData* cloneAndPerformSubstitutions(const SimObject*, S32 index=0) override;
static void initPersistFields();
@ -65,10 +65,10 @@ private:
public:
/*C*/ afxF_Drag();
virtual bool onNewDataBlock(afxForceData* dptr, bool reload);
bool onNewDataBlock(afxForceData* dptr, bool reload) override;
virtual void start();
virtual Point3F evaluate(Point3F pos, Point3F v, F32 mass);
void start() override;
Point3F evaluate(Point3F pos, Point3F v, F32 mass) override;
};
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
@ -196,8 +196,8 @@ class afxF_DragDesc : public afxForceDesc
static afxF_DragDesc desc;
public:
virtual bool testForceType(const SimDataBlock*) const;
virtual afxForce* create() const { return new afxF_Drag; }
bool testForceType(const SimDataBlock*) const override;
afxForce* create() const override { return new afxF_Drag; }
};
afxF_DragDesc afxF_DragDesc::desc;