From 829613193d28efe91bf46defe313ec3cf196fe6f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 22 Jun 2020 23:22:30 -0400 Subject: [PATCH] CGameInfo: Make use of const reference with LoadGameInfo() --- src/Core/GameProject/CGameInfo.cpp | 2 +- src/Core/GameProject/CGameInfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/GameProject/CGameInfo.cpp b/src/Core/GameProject/CGameInfo.cpp index d1a8bc18..865cf78a 100644 --- a/src/Core/GameProject/CGameInfo.cpp +++ b/src/Core/GameProject/CGameInfo.cpp @@ -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); diff --git a/src/Core/GameProject/CGameInfo.h b/src/Core/GameProject/CGameInfo.h index 441279a3..63338d08 100644 --- a/src/Core/GameProject/CGameInfo.h +++ b/src/Core/GameProject/CGameInfo.h @@ -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);