From 09280b0091474b58d43daf42c0f3d99f86e6ec25 Mon Sep 17 00:00:00 2001 From: KingPin Date: Mon, 10 Nov 2008 06:53:00 -0600 Subject: [svn] * Switch from hashmap to unordered map. - cleanup source - mangos. Help - Aokromes --HG-- branch : trunk rename : src/framework/Utilities/HashMap.h => src/framework/Utilities/UnorderedMap.h --- src/game/ObjectAccessor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/ObjectAccessor.h') diff --git a/src/game/ObjectAccessor.h b/src/game/ObjectAccessor.h index d7dde01f640..88d459ffa08 100644 --- a/src/game/ObjectAccessor.h +++ b/src/game/ObjectAccessor.h @@ -24,7 +24,7 @@ #include "Platform/Define.h" #include "Policies/Singleton.h" #include "zthread/FastMutex.h" -#include "Utilities/HashMap.h" +#include "Utilities/UnorderedMap.h" #include "Policies/ThreadingModel.h" #include "ByteBuffer.h" @@ -49,7 +49,7 @@ class HashMapHolder { public: - typedef HM_NAMESPACE::hash_map< uint64, T* > MapType; + typedef UNORDERED_MAP< uint64, T* > MapType; typedef ZThread::FastMutex LockType; typedef Trinity::GeneralLock Guard; @@ -91,8 +91,8 @@ class TRINITY_DLL_DECL ObjectAccessor : public Trinity::Singleton Player2CorpsesMapType; - typedef HM_NAMESPACE::hash_map::value_type UpdateDataValueType; + typedef UNORDERED_MAP Player2CorpsesMapType; + typedef UNORDERED_MAP::value_type UpdateDataValueType; template static T* GetObjectInWorld(uint64 guid, T* /*fake*/) { -- cgit v1.2.3