mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +00:00
feat(Core/Misc): remove and replace ACE_Singleton (#2418)
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#include "Common.h"
|
||||
#include <ace/Task.h>
|
||||
#include <ace/Singleton.h>
|
||||
|
||||
class WorldPacket;
|
||||
|
||||
@@ -96,13 +95,17 @@ const int Colors = int(WHITE)+1;
|
||||
|
||||
class Log
|
||||
{
|
||||
friend class ACE_Singleton<Log, ACE_Thread_Mutex>;
|
||||
|
||||
private:
|
||||
Log();
|
||||
~Log();
|
||||
Log(Log const&) = delete;
|
||||
Log(Log&&) = delete;
|
||||
Log& operator=(Log const&) = delete;
|
||||
Log& operator=(Log&&) = delete;
|
||||
|
||||
public:
|
||||
static Log* instance();
|
||||
|
||||
void Initialize();
|
||||
|
||||
void ReloadConfig();
|
||||
@@ -194,7 +197,7 @@ class Log
|
||||
DebugLogFilters m_DebugLogMask;
|
||||
};
|
||||
|
||||
#define sLog ACE_Singleton<Log, ACE_Thread_Mutex>::instance()
|
||||
#define sLog Log::instance()
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user