From 483468a6c79a6325354435a8ea71017cad217518 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 1 Feb 2025 16:02:45 +0100 Subject: [PATCH] impr: Make WorkspaceManager internals static --- lib/libimhex/source/api/workspace_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libimhex/source/api/workspace_manager.cpp b/lib/libimhex/source/api/workspace_manager.cpp index d276c13e2..b259aef1c 100644 --- a/lib/libimhex/source/api/workspace_manager.cpp +++ b/lib/libimhex/source/api/workspace_manager.cpp @@ -14,10 +14,10 @@ namespace hex { - AutoReset> s_workspaces; - decltype(s_workspaces)::Type::iterator s_currentWorkspace = s_workspaces->end(); - decltype(s_workspaces)::Type::iterator s_previousWorkspace = s_workspaces->end(); - decltype(s_workspaces)::Type::iterator s_workspaceToRemove = s_workspaces->end(); + static AutoReset> s_workspaces; + static decltype(s_workspaces)::Type::iterator s_currentWorkspace = s_workspaces->end(); + static decltype(s_workspaces)::Type::iterator s_previousWorkspace = s_workspaces->end(); + static decltype(s_workspaces)::Type::iterator s_workspaceToRemove = s_workspaces->end(); void WorkspaceManager::createWorkspace(const std::string& name, const std::string &layout) { s_currentWorkspace = s_workspaces->insert_or_assign(name, Workspace {