mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 09:22:17 +00:00
[Code] WebInterfaceList Global to Singleton Cleanup (#4935)
This commit is contained in:
1 parent
967a13e692
commit
c99bda3f47
4 files changed
+9
-8
No files matched your search
@@ -42,6 +42,11 @@ public:
|
||||
void SendError(const std::string &uuid, const std::string &message);
|
||||
void SendError(const std::string &uuid, const std::string &message, const std::string &id);
|
||||
|
||||
static WebInterfaceList* Instance()
|
||||
{
|
||||
static WebInterfaceList instance;
|
||||
return &instance;
|
||||
}
|
||||
private:
|
||||
std::map<std::string, std::unique_ptr<WebInterface>> m_interfaces;
|
||||
};
|
||||
Reference in new issue
Block a user