From 6a0a20e3fab6f38fcf7814f7bcc84b4a749ef2d6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 18 Jun 2020 05:30:26 -0400 Subject: [PATCH] CGameProject: Make use of std::move where applicable Same behavior, but allows calling code to completely eliminate copies. --- src/Core/GameProject/CGameProject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/GameProject/CGameProject.h b/src/Core/GameProject/CGameProject.h index f00cdbaf..97605333 100644 --- a/src/Core/GameProject/CGameProject.h +++ b/src/Core/GameProject/CGameProject.h @@ -84,7 +84,7 @@ public: TString DiscFilesystemRoot(bool Relative) const { return DiscDir(Relative) + (IsWiiBuild() ? "DATA/" : "") + "files/"; } // Accessors - void SetProjectName(const TString& rkName) { mProjectName = rkName; } + void SetProjectName(TString name) { mProjectName = std::move(name); } TString Name() const { return mProjectName; } uint32 NumPackages() const { return mPackages.size(); }