[Code] WebInterfaceList Global to Singleton Cleanup (#4935)

This commit is contained in:
Alex King
2025-06-25 15:49:32 -04:00
committed by GitHub
parent 967a13e692
commit c99bda3f47
4 changed files with 9 additions and 8 deletions
+5
View File
@@ -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;
};