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;