From fa23d0bb9c23fec138a60eabee7c76cecbf9491c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Mar 2020 11:31:51 -0400 Subject: [PATCH] CAnimTreeLoopIn: std::move constructor parameters where applicable Allows the constructor parameters to be moved into. --- Runtime/Character/CAnimTreeLoopIn.cpp | 8 ++++---- Runtime/Character/CAnimTreeLoopIn.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Runtime/Character/CAnimTreeLoopIn.cpp b/Runtime/Character/CAnimTreeLoopIn.cpp index 985bc6121..c8dff7e74 100644 --- a/Runtime/Character/CAnimTreeLoopIn.cpp +++ b/Runtime/Character/CAnimTreeLoopIn.cpp @@ -19,13 +19,13 @@ CAnimTreeLoopIn::CAnimTreeLoopIn(const std::weak_ptr& a, const st , x30_fundamentals(CSequenceHelper(x14_child, x18_nextAnim, animCtx).ComputeSequenceFundamentals()) {} CAnimTreeLoopIn::CAnimTreeLoopIn(const std::weak_ptr& a, const std::weak_ptr& b, - bool didLoopIn, const CAnimSysContext& animCtx, std::string_view name, - const CSequenceFundamentals& fundamentals, const CCharAnimTime& time) + bool didLoopIn, CAnimSysContext animCtx, std::string_view name, + CSequenceFundamentals fundamentals, const CCharAnimTime& time) : CAnimTreeSingleChild(a, name) , x18_nextAnim(b.lock()) , x1c_didLoopIn(didLoopIn) -, x20_animCtx(animCtx) -, x30_fundamentals(fundamentals) +, x20_animCtx(std::move(animCtx)) +, x30_fundamentals(std::move(fundamentals)) , x88_curTime(time) {} CAnimTreeEffectiveContribution CAnimTreeLoopIn::VGetContributionOfHighestInfluence() const { diff --git a/Runtime/Character/CAnimTreeLoopIn.hpp b/Runtime/Character/CAnimTreeLoopIn.hpp index 644e67e27..29dc6202e 100644 --- a/Runtime/Character/CAnimTreeLoopIn.hpp +++ b/Runtime/Character/CAnimTreeLoopIn.hpp @@ -23,7 +23,7 @@ public: CAnimTreeLoopIn(const std::weak_ptr& a, const std::weak_ptr& b, const std::weak_ptr& c, const CAnimSysContext& animCtx, std::string_view name); CAnimTreeLoopIn(const std::weak_ptr& a, const std::weak_ptr& b, bool didLoopIn, - const CAnimSysContext& animCtx, std::string_view name, const CSequenceFundamentals& fundamentals, + CAnimSysContext animCtx, std::string_view name, CSequenceFundamentals fundamentals, const CCharAnimTime& time); CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const override; bool VSupportsReverseView() const { return false; }