2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-06 10:25:53 +00:00

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

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;
};