aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-10 12:07:03 +0100
committerMartin Ridgers <[email protected]>2022-01-10 13:22:28 +0100
commit9086231f3923c0df6d9ef817441bfae5e134e8ff (patch)
tree739a41ca51910d9319cb6c04af435bf9b4c6d5cd /zencore/thread.cpp
parentVcpkg's manifest mode is no longer in use (diff)
downloadzen-9086231f3923c0df6d9ef817441bfae5e134e8ff.tar.xz
zen-9086231f3923c0df6d9ef817441bfae5e134e8ff.zip
Converted use of _format UDL to fmt::format
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 358256b1d..97d44e733 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -310,8 +310,7 @@ NamedEvent::NamedEvent(std::string_view EventName)
int Fd = open(EventPath.c_str(), O_RDWR|O_CREAT, 0644);
if (Fd < 0)
{
- using namespace fmt::literals;
- ThrowLastError("Failed to create '{}' for named event"_format(EventPath));
+ ThrowLastError(fmt::format("Failed to create '{}' for named event", EventPath));
}
// Use the file path to generate an IPC key
@@ -631,8 +630,7 @@ ProcessHandle::Initialize(int Pid)
if (!m_ProcessHandle)
{
- using namespace fmt::literals;
- ThrowLastError("ProcessHandle::Initialize(pid: {}) failed"_format(Pid));
+ ThrowLastError(fmt::format("ProcessHandle::Initialize(pid: {}) failed", Pid));
}
m_Pid = Pid;
@@ -1113,8 +1111,7 @@ IsProcessRunning(int pid)
return false;
}
- using namespace fmt::literals;
- ThrowSystemError(Error, "failed to open process with pid {}"_format(pid));
+ ThrowSystemError(Error, fmt::format("failed to open process with pid {}", pid));
}
CloseHandle(hProc);