diff options
| author | Martin Ridgers <[email protected]> | 2021-11-09 16:42:23 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-09 16:48:52 +0100 |
| commit | ad1dd1bf6bec1a185cd70050c5758687054fc76f (patch) | |
| tree | fb1613ad83106e24491ef8565b4a67555f1da883 /zencore/thread.cpp | |
| parent | Only implement ProcessHandle::Initialize(void*) on Windows (diff) | |
| download | zen-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.cpp | 2 |
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)); } |