aboutsummaryrefslogtreecommitdiff
path: root/zen/internalfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zen/internalfile.cpp')
-rw-r--r--zen/internalfile.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/zen/internalfile.cpp b/zen/internalfile.cpp
index a1f07992b..dbafcb549 100644
--- a/zen/internalfile.cpp
+++ b/zen/internalfile.cpp
@@ -192,8 +192,7 @@ InternalFile::OpenWrite(std::filesystem::path FileName, bool IsCreate)
if (Success)
{
- using namespace fmt::literals;
- zen::ThrowLastError("Failed to open file for writing: '{}'"_format(FileName));
+ zen::ThrowLastError(fmt::format("Failed to open file for writing: '{}'", FileName));
}
}
@@ -218,8 +217,7 @@ InternalFile::OpenRead(std::filesystem::path FileName)
if (Success)
{
- using namespace fmt::literals;
- zen::ThrowLastError("Failed to open file for reading: '{}'"_format(FileName));
+ zen::ThrowLastError(fmt::format("Failed to open file for reading: '{}'", FileName));
}
}
@@ -267,8 +265,7 @@ InternalFile::Read(void* Data, uint64_t Size, uint64_t Offset)
if (Success)
{
- using namespace fmt::literals;
- zen::ThrowLastError("Failed to read from file '{}'"_format("")); // zen::PathFromHandle(m_File)));
+ zen::ThrowLastError(fmt::format("Failed to read from file '{}'", "")); // zen::PathFromHandle(m_File)));
}
}
@@ -293,7 +290,6 @@ InternalFile::Write(const void* Data, uint64_t Size, uint64_t Offset)
if (Success)
{
- using namespace fmt::literals;
- zen::ThrowLastError("Failed to write to file '{}'"_format(zen::PathFromHandle(m_File)));
+ zen::ThrowLastError(fmt::format("Failed to write to file '{}'", zen::PathFromHandle(m_File)));
}
}