Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port

This commit is contained in:
Shauren
2020-09-04 13:38:24 +02:00
parent b20acfe701
commit b231903932
631 changed files with 2966 additions and 3263 deletions

View File

@@ -19,8 +19,8 @@
#define TRINITY_FACTORY_HOLDER
#include "Define.h"
#include "Dynamic/TypeList.h"
#include "ObjectRegistry.h"
#include "TypeList.h"
/** FactoryHolder holds a factory object of a specific type
*/

View File

@@ -164,7 +164,7 @@ class LinkedListHead
{ // construct with node pointer _Pnode
}
Iterator& operator=(const_pointer const &_Right)
Iterator& operator=(const_pointer const& _Right)
{
_Ptr = pointer(_Right);
return *this;
@@ -206,22 +206,22 @@ class LinkedListHead
return (_Tmp);
}
bool operator==(Iterator const &_Right) const
bool operator==(Iterator const& _Right) const
{ // test for iterator equality
return (_Ptr == _Right._Ptr);
}
bool operator!=(Iterator const &_Right) const
bool operator!=(Iterator const& _Right) const
{ // test for iterator inequality
return (!(*this == _Right));
}
bool operator==(pointer const &_Right) const
bool operator==(pointer const& _Right) const
{ // test for pointer equality
return (_Ptr != _Right);
}
bool operator!=(pointer const &_Right) const
bool operator!=(pointer const& _Right) const
{ // test for pointer equality
return (!(*this == _Right));
}

View File

@@ -81,6 +81,8 @@ class ObjectRegistry final
// non instanceable, only static
ObjectRegistry() { }
~ObjectRegistry() { }
ObjectRegistry(ObjectRegistry const&) = delete;
ObjectRegistry& operator=(ObjectRegistry const&) = delete;
};
#endif