mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -81,6 +81,8 @@ class ObjectRegistry final
|
||||
// non instanceable, only static
|
||||
ObjectRegistry() { }
|
||||
~ObjectRegistry() { }
|
||||
ObjectRegistry(ObjectRegistry const&) = delete;
|
||||
ObjectRegistry& operator=(ObjectRegistry const&) = delete;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user