From 190ff781eaee33e7a61aab44fc4133718cc0515b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 13 Jun 2026 00:36:59 +0200 Subject: add .clang-format --- src/resource.hpp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'src/resource.hpp') diff --git a/src/resource.hpp b/src/resource.hpp index 6039fab..1f7b9ad 100644 --- a/src/resource.hpp +++ b/src/resource.hpp @@ -11,24 +11,19 @@ #include #include - #include -namespace resource -{ - inline std::wstring load_string(unsigned int id) - { - wchar_t* s = nullptr; +namespace resource { + +inline std::wstring load_string(unsigned int id) { + wchar_t* s = nullptr; - const auto ret = LoadStringW( - process::load_exe_module(), - id, - reinterpret_cast(&s), - 0); + const auto ret = LoadStringW(process::load_exe_module(), id, reinterpret_cast(&s), 0); - if (ret <= 0) - error::raise("LoadStringW"); + if (ret <= 0) + error::raise("LoadStringW"); - return {s, static_cast(ret)}; - } + return {s, static_cast(ret)}; } + +} // namespace resource -- cgit v1.3