aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-09 16:42:23 +0100
committerMartin Ridgers <[email protected]>2021-11-09 16:48:52 +0100
commitad1dd1bf6bec1a185cd70050c5758687054fc76f (patch)
treefb1613ad83106e24491ef8565b4a67555f1da883 /zencore/thread.cpp
parentOnly implement ProcessHandle::Initialize(void*) on Windows (diff)
downloadzen-ad1dd1bf6bec1a185cd70050c5758687054fc76f.tar.xz
zen-ad1dd1bf6bec1a185cd70050c5758687054fc76f.zip
Moved "using namespace" statement into the scope it applies to
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}