summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-11-30 05:03:30 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-01 00:26:26 +0100
commit3c39c0ac3e710df45af1f812a9015378b2d7ada4 (patch)
tree3132d1ca64443c3c643adaedf0f427d99b166b2d /src
parentCMake: Disable PCH on MSVC + Buildcache configs (diff)
downloadyuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.tar
yuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.tar.gz
yuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.tar.bz2
yuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.tar.lz
yuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.tar.xz
yuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.tar.zst
yuzu-3c39c0ac3e710df45af1f812a9015378b2d7ada4.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/string_util.cpp4
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) {
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');