CDependencyTree: std::move strings where applicable
Same behavior, more performance
This commit is contained in:
parent
9ed81480cc
commit
315874c0ba
|
@ -93,9 +93,9 @@ class CPropertyDependency : public CResourceDependency
|
||||||
public:
|
public:
|
||||||
CPropertyDependency() = default;
|
CPropertyDependency() = default;
|
||||||
|
|
||||||
CPropertyDependency(const TString& rkPropID, const CAssetID& rkAssetID)
|
CPropertyDependency(TString rkPropID, const CAssetID& rkAssetID)
|
||||||
: CResourceDependency(rkAssetID)
|
: CResourceDependency(rkAssetID)
|
||||||
, mIDString(rkPropID)
|
, mIDString(std::move(rkPropID))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
EDependencyNodeType Type() const override;
|
EDependencyNodeType Type() const override;
|
||||||
|
@ -114,8 +114,8 @@ protected:
|
||||||
public:
|
public:
|
||||||
CCharPropertyDependency() = default;
|
CCharPropertyDependency() = default;
|
||||||
|
|
||||||
CCharPropertyDependency(const TString& rkPropID, const CAssetID& rkAssetID, int UsedChar)
|
CCharPropertyDependency(TString rkPropID, const CAssetID& rkAssetID, int UsedChar)
|
||||||
: CPropertyDependency(rkPropID, rkAssetID)
|
: CPropertyDependency(std::move(rkPropID), rkAssetID)
|
||||||
, mUsedChar(UsedChar)
|
, mUsedChar(UsedChar)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue