From ad1dd1bf6bec1a185cd70050c5758687054fc76f Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 9 Nov 2021 16:42:23 +0100 Subject: Moved "using namespace" statement into the scope it applies to --- zencore/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 423187218..9f1fa2534 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -322,10 +322,10 @@ ProcessHandle::Initialize(int Pid) ZEN_ASSERT(m_ProcessHandle == nullptr); m_ProcessHandle = OpenProcess(PROCESS_QUERY_INFORMATION | SYNCHRONIZE, FALSE, Pid); - using namespace fmt::literals; if (!m_ProcessHandle) { + using namespace fmt::literals; ThrowLastError("ProcessHandle::Initialize(pid: {}) failed"_format(Pid)); } -- cgit v1.2.3