diff --git a/src/Core/Resource/Script/Property/CEnumProperty.h b/src/Core/Resource/Script/Property/CEnumProperty.h index abcce278..83b47fbf 100644 --- a/src/Core/Resource/Script/Property/CEnumProperty.h +++ b/src/Core/Resource/Script/Property/CEnumProperty.h @@ -22,8 +22,8 @@ class TEnumPropertyBase : public TSerializeableTypedProperty uint32 ID = 0; SEnumValue() = default; - SEnumValue(const TString& rkInName, uint32 InID) - : Name(rkInName), ID(InID) {} + SEnumValue(TString rkInName, uint32 InID) + : Name(std::move(rkInName)), ID(InID) {} bool operator==(const SEnumValue& other) const