CAnimationManager: std::move parameters to constructor where applicable

Allows calling code to move into the respective arguments.
This commit is contained in:
Lioncash 2020-03-09 11:27:34 -04:00
parent e289643742
commit ab17c1cf2f
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ class CAnimationManager {
CAnimSysContext x8_sysCtx; CAnimSysContext x8_sysCtx;
public: public:
CAnimationManager(const TToken<CAnimationDatabaseGame>& animDB, const CAnimSysContext& sysCtx) CAnimationManager(TToken<CAnimationDatabaseGame> animDB, CAnimSysContext sysCtx)
: x0_animDB(animDB), x8_sysCtx(sysCtx) {} : x0_animDB(std::move(animDB)), x8_sysCtx(std::move(sysCtx)) {}
const CAnimationDatabaseGame* GetAnimationDatabase() const; const CAnimationDatabaseGame* GetAnimationDatabase() const;
std::shared_ptr<CAnimTreeNode> GetAnimationTree(s32, const CMetaAnimTreeBuildOrders& orders) const; std::shared_ptr<CAnimTreeNode> GetAnimationTree(s32, const CMetaAnimTreeBuildOrders& orders) const;