diff options
| author | Per Larsson <[email protected]> | 2022-01-11 10:31:34 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-01-11 10:31:34 +0100 |
| commit | fa40b11e35f9791bd6ca472ef7bfc246eecbd696 (patch) | |
| tree | 058c1dcef54eb3c15eedc12b29f24d72db239d52 /zencore/thread.cpp | |
| parent | Added option to disable Sentry crash handler. (diff) | |
| parent | Not all toolchains support C++20's atomic<double>::fetch_add() (diff) | |
| download | zen-fa40b11e35f9791bd6ca472ef7bfc246eecbd696.tar.xz zen-fa40b11e35f9791bd6ca472ef7bfc246eecbd696.zip | |
Merged main.
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 9 |
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); |