mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-30 10:23:31 +00:00
CScriptLayer: std::move string in SetName()
Allows calling code to avoid copies.
This commit is contained in:
parent
a55fafac22
commit
e9df5625e6
@ -94,9 +94,9 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void SetName(const TString& rkName) { mLayerName = rkName; }
|
||||
void SetActive(bool Active) { mActive = Active; }
|
||||
void SetVisible(bool Visible) { mVisible = Visible; }
|
||||
void SetName(TString rkName) { mLayerName = std::move(rkName); }
|
||||
void SetActive(bool Active) { mActive = Active; }
|
||||
void SetVisible(bool Visible) { mVisible = Visible; }
|
||||
|
||||
uint32 AreaIndex() const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user