diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-03 14:10:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 14:10:06 -0500 |
commit | 75e16547f8977e8b2b07723b04bcc3cbe999d566 (patch) | |
tree | 7a7795d68f636d1a3f4972c3ea36c1d50db564c5 /src/common/string_util.cpp | |
parent | 22aff09b33941cdf907e474cb86117fef838abba (diff) | |
parent | 5b5612c1cc1ef7a4888e7c45e41b15433127a2e5 (diff) |
Merge pull request #9300 from ameerj/pch
CMake: Use precompiled headers to improve compile times
Diffstat (limited to 'src/common/string_util.cpp')
-rw-r--r-- | src/common/string_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 7a495bc798..b26db47961 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -141,7 +141,7 @@ static std::wstring CPToUTF16(u32 code_page, const std::string& input) { MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0); if (size == 0) { - return L""; + return {}; } std::wstring output(size, L'\0'); @@ -158,7 +158,7 @@ std::string UTF16ToUTF8(const std::wstring& input) { const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), nullptr, 0, nullptr, nullptr); if (size == 0) { - return ""; + return {}; } std::string output(size, '\0'); |