CScriptLayer: std::move string in SetName()
Allows calling code to avoid copies.
@@ -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; }
