From b1b4bb8850392b050a6634434ab1e38df6c65f3c Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 13 Nov 2024 22:50:03 -0500 Subject: [PATCH] clangformat --- httplib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/httplib.h b/httplib.h index d75dcf0..1773014 100644 --- a/httplib.h +++ b/httplib.h @@ -2265,10 +2265,10 @@ std::wstring u8string_to_wstring(const char *s) { auto wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0); if (wlen > 0) { ws.resize(wlen); - wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, const_cast(reinterpret_cast(ws.data())), wlen); - if (wlen != ws.size()) { - ws.clear(); - } + wlen = ::MultiByteToWideChar( + CP_UTF8, 0, s, len, + const_cast(reinterpret_cast(ws.data())), wlen); + if (wlen != ws.size()) { ws.clear(); } } return ws; }