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

This commit is contained in:
Alex King authored and GitHub committed 2025-06-25 14:49:32 -05:00
1 parent 967a13e692
commit c99bda3f47
4 files changed
+9 -8

No files matched your search

+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;
};