CGameInfo: Make use of const reference with LoadGameInfo()

This commit is contained in:
Lioncash 2020-06-22 23:22:30 -04:00
parent a25430eec3
commit 829613193d
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ bool CGameInfo::LoadGameInfo(EGame Game)
return LoadGameInfo(Path);
}
bool CGameInfo::LoadGameInfo(TString Path)
bool CGameInfo::LoadGameInfo(const TString& Path)
{
CXMLReader Reader(Path);

View File

@ -37,7 +37,7 @@ public:
CGameInfo() = default;
bool LoadGameInfo(EGame Game);
bool LoadGameInfo(TString Path);
bool LoadGameInfo(const TString& Path);
bool SaveGameInfo(TString Path = "");
void Serialize(IArchive& rArc);