From ab17c1cf2f203a990bd219aa4c5a8ba1667646de Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Mar 2020 11:27:34 -0400 Subject: [PATCH] CAnimationManager: std::move parameters to constructor where applicable Allows calling code to move into the respective arguments. --- Runtime/Character/CAnimationManager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Character/CAnimationManager.hpp b/Runtime/Character/CAnimationManager.hpp index cff8282e3..ef194d97b 100644 --- a/Runtime/Character/CAnimationManager.hpp +++ b/Runtime/Character/CAnimationManager.hpp @@ -19,8 +19,8 @@ class CAnimationManager { CAnimSysContext x8_sysCtx; public: - CAnimationManager(const TToken& animDB, const CAnimSysContext& sysCtx) - : x0_animDB(animDB), x8_sysCtx(sysCtx) {} + CAnimationManager(TToken animDB, CAnimSysContext sysCtx) + : x0_animDB(std::move(animDB)), x8_sysCtx(std::move(sysCtx)) {} const CAnimationDatabaseGame* GetAnimationDatabase() const; std::shared_ptr GetAnimationTree(s32, const CMetaAnimTreeBuildOrders& orders) const;