CScriptLayer: std::move string in SetName()

Allows calling code to avoid copies.
This commit is contained in:
Lioncash 2020-06-18 04:48:13 -04:00
parent a55fafac22
commit e9df5625e6
1 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ public:
return nullptr;
}
void SetName(const TString& rkName) { mLayerName = rkName; }
void SetName(TString rkName) { mLayerName = std::move(rkName); }
void SetActive(bool Active) { mActive = Active; }
void SetVisible(bool Visible) { mVisible = Visible; }