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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user