aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/error.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 19:25:17 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 19:25:17 +0200
commit97b796e7788ae69c0aaeec2644246d9f10d2739d (patch)
treeb6397ccbabde7ee3e470c6a9ae799c91d6e070e2 /src/error.cpp
parentupgrade winapi-utf8 (diff)
downloadwinapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.tar.gz
winapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.zip
finally, perfect .clang-format settings?
Diffstat (limited to 'src/error.cpp')
-rw-r--r--src/error.cpp6
1 files changed, 4 insertions, 2 deletions
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<wchar_t*>(&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<int32_t>(code), category_windows(), build_what(code, function)};
+ static_cast<int32_t>(code), category_windows(), build_what(code, function)
+ };
}
} // namespace winapi::error