mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-14 07:36:11 +00:00
CWorld: Make use of std::move in SetName()
Allows calling code to avoid copies.
This commit is contained in:
@@ -123,7 +123,7 @@ public:
|
||||
CStringTable* AreaName(uint32 AreaIndex) const { return mAreas[AreaIndex].pAreaName; }
|
||||
bool DoesAreaAllowPakDuplicates(uint32 AreaIndex) const { return mAreas[AreaIndex].AllowPakDuplicates; }
|
||||
|
||||
void SetName(const TString& rkName) { mName = rkName; }
|
||||
void SetName(TString rkName) { mName = std::move(rkName); }
|
||||
void SetAreaAllowsPakDuplicates(uint32 AreaIndex, bool Allow) { mAreas[AreaIndex].AllowPakDuplicates = Allow; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user