From 97b796e7788ae69c0aaeec2644246d9f10d2739d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 19:25:17 +0200 Subject: finally, perfect .clang-format settings? --- src/error.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/error.cpp') diff --git a/src/error.cpp b/src/error.cpp index 7266e63..4993866 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -39,7 +39,8 @@ std::string format_message(int32_t code) { MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), reinterpret_cast(&buf), 0, - NULL); + NULL + ); if (0 == len) { ::LocalFree(buf); @@ -60,7 +61,8 @@ std::string CategoryWindows::message(int32_t code) const { std::system_error windows(DWORD code, const char* function) { static_assert(sizeof(DWORD) == sizeof(int32_t), "Aren't DWORDs the same size as ints?"); return std::system_error{ - static_cast(code), category_windows(), build_what(code, function)}; + static_cast(code), category_windows(), build_what(code, function) + }; } } // namespace winapi::error -- cgit v1.3