Fix GetArg overload ambiguity for pid file

This commit is contained in:
Krystie
2026-05-10 01:53:32 -07:00
parent b1e9878849
commit b979f7ae7d
+1 -1
View File
@@ -1114,7 +1114,7 @@ void ReadConfigFile(map<string, string>& mapSettingsRet,
std::filesystem::path GetPidFile()
{
std::filesystem::path pathPidFile(GetArg("-pid", "trianglesd.pid"));
std::filesystem::path pathPidFile(GetArg(std::string_view{"-pid"}, std::string_view{"trianglesd.pid"}));
if (!pathPidFile.is_absolute()) pathPidFile = GetDataDir() / pathPidFile;
return pathPidFile;
}