1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Use return {} instead of return ""

This commit is contained in:
Gymnasiast
2022-01-16 13:18:41 +01:00
parent 0aa256a26a
commit c69ef062ab
4 changed files with 11 additions and 11 deletions

View File

@@ -297,7 +297,7 @@ namespace Platform
const char* homeDir = getpwuid(getuid())->pw_dir;
if (homeDir == nullptr)
{
return "";
return {};
}
auto steamPath = Path::Combine(homeDir, ".local/share/Steam/ubuntu12_32/steamapps/content");
@@ -312,7 +312,7 @@ namespace Platform
return steamPath;
}
return "";
return {};
}
std::string GetFontPath(const TTFFontDescriptor& font)
@@ -323,7 +323,7 @@ namespace Platform
{
log_error("Failed to initialize FontConfig library");
FcFini();
return "";
return {};
}
FcPattern* pat = FcNameParse(reinterpret_cast<const FcChar8*>(font.font_name));