CAnimTreeLoopIn: std::move constructor parameters where applicable

Allows the constructor parameters to be moved into.
This commit is contained in:
Lioncash 2020-03-09 11:31:51 -04:00
parent ab17c1cf2f
commit fa23d0bb9c
2 changed files with 5 additions and 5 deletions

View File

@ -19,13 +19,13 @@ CAnimTreeLoopIn::CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const st
, x30_fundamentals(CSequenceHelper(x14_child, x18_nextAnim, animCtx).ComputeSequenceFundamentals()) {} , x30_fundamentals(CSequenceHelper(x14_child, x18_nextAnim, animCtx).ComputeSequenceFundamentals()) {}
CAnimTreeLoopIn::CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b, CAnimTreeLoopIn::CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
bool didLoopIn, const CAnimSysContext& animCtx, std::string_view name, bool didLoopIn, CAnimSysContext animCtx, std::string_view name,
const CSequenceFundamentals& fundamentals, const CCharAnimTime& time) CSequenceFundamentals fundamentals, const CCharAnimTime& time)
: CAnimTreeSingleChild(a, name) : CAnimTreeSingleChild(a, name)
, x18_nextAnim(b.lock()) , x18_nextAnim(b.lock())
, x1c_didLoopIn(didLoopIn) , x1c_didLoopIn(didLoopIn)
, x20_animCtx(animCtx) , x20_animCtx(std::move(animCtx))
, x30_fundamentals(fundamentals) , x30_fundamentals(std::move(fundamentals))
, x88_curTime(time) {} , x88_curTime(time) {}
CAnimTreeEffectiveContribution CAnimTreeLoopIn::VGetContributionOfHighestInfluence() const { CAnimTreeEffectiveContribution CAnimTreeLoopIn::VGetContributionOfHighestInfluence() const {

View File

@ -23,7 +23,7 @@ public:
CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b, CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
const std::weak_ptr<CAnimTreeNode>& c, const CAnimSysContext& animCtx, std::string_view name); const std::weak_ptr<CAnimTreeNode>& c, const CAnimSysContext& animCtx, std::string_view name);
CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b, bool didLoopIn, CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b, bool didLoopIn,
const CAnimSysContext& animCtx, std::string_view name, const CSequenceFundamentals& fundamentals, CAnimSysContext animCtx, std::string_view name, CSequenceFundamentals fundamentals,
const CCharAnimTime& time); const CCharAnimTime& time);
CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const override; CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const override;
bool VSupportsReverseView() const { return false; } bool VSupportsReverseView() const { return false; }