diff options
author | Kargatum <dowlandtop@yandex.com> | 2019-12-21 00:29:29 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-21 00:29:29 +0700 |
commit | 4a8f1de5381d1cf53cdcc4c5bb7d9ef7c99a8a8f (patch) | |
tree | 7c0117a500b6f77cccd0feacb883c85fbcb8850d /src/common/Configuration/Config.cpp | |
parent | 16b45bf3340ee11d7f4f50daeadaf7b752ce7579 (diff) |
feat(Core/Misc): remove and replace ACE_Singleton (#2418)
Diffstat (limited to 'src/common/Configuration/Config.cpp')
-rw-r--r-- | src/common/Configuration/Config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/Configuration/Config.cpp b/src/common/Configuration/Config.cpp index f4adab7046..2b1ea059fd 100644 --- a/src/common/Configuration/Config.cpp +++ b/src/common/Configuration/Config.cpp @@ -8,6 +8,12 @@ #include "Errors.h" #include "Log.h" +ConfigMgr* ConfigMgr::instance() +{ + static ConfigMgr instance; + return &instance; +} + // Defined here as it must not be exposed to end-users. bool ConfigMgr::GetValueHelper(const char* name, ACE_TString &result) { |