diff options
author | rtk0c <[email protected]> | 2022-11-27 12:04:31 -0800 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-11-27 12:04:31 -0800 |
commit | 182c8f8357739f905bbd721006480502435b6b43 (patch) | |
tree | 082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/Utils/IO/CstdioFile.cpp | |
parent | b01ed99a1cd0c863c8709930658513c04dd70f61 (diff) |
Update brace style to match rest of my projectscplt-imgui
Diffstat (limited to 'app/source/Cplt/Utils/IO/CstdioFile.cpp')
-rw-r--r-- | app/source/Cplt/Utils/IO/CstdioFile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/source/Cplt/Utils/IO/CstdioFile.cpp b/app/source/Cplt/Utils/IO/CstdioFile.cpp index c414dfb..0496fa1 100644 --- a/app/source/Cplt/Utils/IO/CstdioFile.cpp +++ b/app/source/Cplt/Utils/IO/CstdioFile.cpp @@ -12,8 +12,7 @@ #endif namespace CPLT_UNITY_ID { -auto GetModeString(FileUtils::IoMode mode) -{ +auto GetModeString(FileUtils::IoMode mode) { switch (mode) { case FileUtils::IM_Read: return MODE_STRING("rb"); case FileUtils::IM_WriteAppend: return MODE_STRING("ab"); @@ -25,8 +24,7 @@ auto GetModeString(FileUtils::IoMode mode) #pragma pop_macro("MODE_STRING") -FILE* FileUtils::OpenCstdioFile(const std::filesystem::path& path, IoMode mode) -{ +FILE* FileUtils::OpenCstdioFile(const std::filesystem::path& path, IoMode mode) { #ifdef _WIN32 // std::filesystem::path::c_str() returns `const wchar_t*` under Windows, because NT uses UTF-16 natively return _wfopen(path.c_str(), ::GetModeString(mode)); |