From ed6312b6570cd1bcf11b6411b4b126a4f122a1bd Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 12 Jul 2026 09:47:54 +0200 Subject: [PATCH] Unwrap an over-wrapped line in utf8.hpp to match the codebase style The WideCharToMultiByte call fits in one line under the 120-column limit (119 cols) -- the form the code it was extracted from used. Comment/whitespace only. --- host/src/util/utf8.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/host/src/util/utf8.hpp b/host/src/util/utf8.hpp index 98a7445..ce310f0 100644 --- a/host/src/util/utf8.hpp +++ b/host/src/util/utf8.hpp @@ -16,8 +16,7 @@ inline std::string narrow(const std::wstring& w) { return {}; } - const int n = - WideCharToMultiByte(CP_UTF8, 0, w.c_str(), static_cast(w.size()), nullptr, 0, nullptr, nullptr); + const int n = WideCharToMultiByte(CP_UTF8, 0, w.c_str(), static_cast(w.size()), nullptr, 0, nullptr, nullptr); std::string s(static_cast(n), '\0'); WideCharToMultiByte(CP_UTF8, 0, w.c_str(), static_cast(w.size()), s.data(), n, nullptr, nullptr); return s;