CTransitionManager: std::move constructor parameters where applicable

Allows calling code to move into the constructor
This commit is contained in:
Lioncash 2020-03-09 11:51:06 -04:00
parent 3a96c574b2
commit 39b561b089
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class CTransitionManager {
CAnimSysContext x0_animCtx;
public:
CTransitionManager(const CAnimSysContext& sysCtx) : x0_animCtx(sysCtx) {}
explicit CTransitionManager(CAnimSysContext sysCtx) : x0_animCtx(std::move(sysCtx)) {}
std::shared_ptr<CAnimTreeNode> GetTransitionTree(const std::shared_ptr<CAnimTreeNode>& a,
const std::shared_ptr<CAnimTreeNode>& b) const;
};