mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-03 03:50:40 +00:00
[Code] WebInterfaceList Global to Singleton Cleanup (#4935)
This commit is contained in:
@@ -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