Core: Converted (hopefully) all remaining singletons to use ACE_Singleton class

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-22 20:52:47 +01:00
parent 7b4e1c6387
commit 0948fc5bbe
6 changed files with 28 additions and 57 deletions
+4 -4
View File
@@ -21,6 +21,7 @@
// For static or at-server-startup loaded spell data
// For more high level function for sSpellStore data
#include <ace/Singleton.h>
#include "SharedDefines.h"
#include "SpellAuraDefines.h"
@@ -914,8 +915,7 @@ inline bool IsProfessionOrRidingSkill(uint32 skill)
class SpellMgr
{
// Constructors
public:
friend class ACE_Singleton<SpellMgr, ACE_Null_Mutex>;
SpellMgr();
~SpellMgr();
@@ -1387,7 +1387,6 @@ class SpellMgr
// Modifiers
public:
static SpellMgr& Instance();
// Loading data at server startup
void LoadSpellRanks();
@@ -1443,5 +1442,6 @@ class SpellMgr
SpellDifficultySearcherMap mSpellDifficultySearcherMap;
};
#define sSpellMgr SpellMgr::Instance()
#define sSpellMgr (*ACE_Singleton<SpellMgr, ACE_Null_Mutex>::instance())
#endif