CScriptLayer: std::move string in SetName()
Allows calling code to avoid copies.
This commit is contained in:
parent
a55fafac22
commit
e9df5625e6
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue