diff options
| author | 2022-12-03 14:10:06 -0500 | |
|---|---|---|
| committer | 2022-12-03 14:10:06 -0500 | |
| commit | 75e16547f8977e8b2b07723b04bcc3cbe999d566 (patch) | |
| tree | 7a7795d68f636d1a3f4972c3ea36c1d50db564c5 /src/common/string_util.cpp | |
| parent | Merge pull request #9289 from liamwhite/fruit-company (diff) | |
| parent | CMake: Consolidate common PCH headers (diff) | |
| download | yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.gz yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.xz yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.zip | |
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 7a495bc79..b26db4796 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) { | |||
| 141 | MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0); | 141 | MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0); |
| 142 | 142 | ||
| 143 | if (size == 0) { | 143 | if (size == 0) { |
| 144 | return L""; | 144 | return {}; |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | std::wstring output(size, L'\0'); | 147 | std::wstring output(size, L'\0'); |
| @@ -158,7 +158,7 @@ std::string UTF16ToUTF8(const std::wstring& input) { | |||
| 158 | const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), | 158 | const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), |
| 159 | nullptr, 0, nullptr, nullptr); | 159 | nullptr, 0, nullptr, nullptr); |
| 160 | if (size == 0) { | 160 | if (size == 0) { |
| 161 | return ""; | 161 | return {}; |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | std::string output(size, '\0'); | 164 | std::string output(size, '\0'); |