mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-28 00:29:34 +00:00
virtuals removed
virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
This commit is contained in:
parent
88a43f3137
commit
efbe5e90f5
255 changed files with 2164 additions and 2164 deletions
|
|
@ -554,8 +554,8 @@ public:
|
|||
/// @name Console Type Interface
|
||||
/// @{
|
||||
|
||||
virtual void* getNativeVariable() { return new ( AbstractClassRep* ); } // Any pointer-sized allocation will do.
|
||||
virtual void deleteNativeVariable( void* var ) { delete reinterpret_cast< AbstractClassRep** >( var ); }
|
||||
void* getNativeVariable() override { return new ( AbstractClassRep* ); } // Any pointer-sized allocation will do.
|
||||
void deleteNativeVariable( void* var ) override { delete reinterpret_cast< AbstractClassRep** >( var ); }
|
||||
|
||||
/// @}
|
||||
|
||||
|
|
@ -603,7 +603,7 @@ class ConcreteAbstractClassRep : public AbstractClassRep
|
|||
{
|
||||
public:
|
||||
|
||||
virtual AbstractClassRep* getContainerChildClass(const bool recurse)
|
||||
AbstractClassRep* getContainerChildClass(const bool recurse) override
|
||||
{
|
||||
// Fetch container children type.
|
||||
AbstractClassRep* pChildren = T::getContainerChildStaticClassRep();
|
||||
|
|
@ -619,7 +619,7 @@ public:
|
|||
return pParent->getContainerChildClass(recurse);
|
||||
}
|
||||
|
||||
virtual WriteCustomTamlSchema getCustomTamlSchema(void)
|
||||
WriteCustomTamlSchema getCustomTamlSchema(void) override
|
||||
{
|
||||
return T::getStaticWriteCustomTamlSchema();
|
||||
}
|
||||
|
|
@ -663,12 +663,12 @@ public:
|
|||
};
|
||||
|
||||
/// Wrap constructor.
|
||||
ConsoleObject* create() const { return NULL; }
|
||||
ConsoleObject* create() const override { return NULL; }
|
||||
|
||||
/// Perform class specific initialization tasks.
|
||||
///
|
||||
/// Link namespaces, call initPersistFields() and consoleInit().
|
||||
void init()
|
||||
void init() override
|
||||
{
|
||||
// Get handle to our parent class, if any, and ourselves (we are our parent's child).
|
||||
AbstractClassRep *parent = T::getParentStaticClassRep();
|
||||
|
|
@ -712,7 +712,7 @@ public:
|
|||
/// @name Console Type Interface
|
||||
/// @{
|
||||
|
||||
virtual void setData(void* dptr, S32 argc, const char** argv, const EnumTable* tbl, BitSet32 flag)
|
||||
void setData(void* dptr, S32 argc, const char** argv, const EnumTable* tbl, BitSet32 flag) override
|
||||
{
|
||||
if (argc == 1)
|
||||
{
|
||||
|
|
@ -723,14 +723,14 @@ public:
|
|||
Con::errorf("Cannot set multiple args to a single ConsoleObject*.");
|
||||
}
|
||||
|
||||
virtual const char* getData(void* dptr, const EnumTable* tbl, BitSet32 flag)
|
||||
const char* getData(void* dptr, const EnumTable* tbl, BitSet32 flag) override
|
||||
{
|
||||
T** obj = (T**)dptr;
|
||||
return Con::getReturnBuffer(T::__getObjectId(*obj));
|
||||
}
|
||||
|
||||
virtual const char* getTypeClassName() { return mClassName; }
|
||||
virtual const bool isDatablock() { return T::__smIsDatablock; };
|
||||
const char* getTypeClassName() override { return mClassName; }
|
||||
const bool isDatablock() override { return T::__smIsDatablock; };
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
|
@ -752,7 +752,7 @@ public:
|
|||
}
|
||||
|
||||
/// Wrap constructor.
|
||||
ConsoleObject* create() const { return new T; }
|
||||
ConsoleObject* create() const override { return new T; }
|
||||
};
|
||||
|
||||
template< typename T > EnginePropertyTable ConcreteAbstractClassRep< T >::_smPropertyTable(0, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue