summaryrefslogtreecommitdiff
path: root/indra/llcharacter/llmotioncontroller.cpp
diff options
context:
space:
mode:
authorFawrsk <fawrsk@gmail.com>2023-01-10 05:43:27 -0400
committerGitHub <noreply@github.com>2023-01-10 11:43:27 +0200
commit7419037ef6e8a5497283278baa8582b264d3aefa (patch)
treed4486cea253918ce1ff533148a4b7f8d9ddc2688 /indra/llcharacter/llmotioncontroller.cpp
parent9c250f1a9ee2e49505a35513cb88de54e2694e6c (diff)
SL-18893 Fixes for pull requests #38, #41, and #42 (#46)
Eliminate unnecessary copies, and remove uses of auto
Diffstat (limited to 'indra/llcharacter/llmotioncontroller.cpp')
-rw-r--r--indra/llcharacter/llmotioncontroller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcharacter/llmotioncontroller.cpp b/indra/llcharacter/llmotioncontroller.cpp
index 8716fbff56..96e0d5e8d7 100644
--- a/indra/llcharacter/llmotioncontroller.cpp
+++ b/indra/llcharacter/llmotioncontroller.cpp
@@ -1053,7 +1053,7 @@ LLMotion* LLMotionController::findMotion(const LLUUID& id) const
void LLMotionController::dumpMotions()
{
LL_INFOS() << "=====================================" << LL_ENDL;
- for (motion_map_t::value_type motion_pair : mAllMotions)
+ for (motion_map_t::value_type& motion_pair : mAllMotions)
{
LLUUID id = motion_pair.first;
std::string state_string;
@@ -1076,7 +1076,7 @@ void LLMotionController::dumpMotions()
//-----------------------------------------------------------------------------
void LLMotionController::deactivateAllMotions()
{
- for (motion_map_t::value_type motion_pair : mAllMotions)
+ for (motion_map_t::value_type& motion_pair : mAllMotions)
{
LLMotion* motionp = motion_pair.second;
deactivateMotionInstance(motionp);
@@ -1110,7 +1110,7 @@ void LLMotionController::flushAllMotions()
mCharacter->removeAnimationData("Hand Pose");
// restart motions
- for (std::vector<std::pair<LLUUID,F32> >::value_type motion_pair : active_motions)
+ for (std::vector<std::pair<LLUUID,F32> >::value_type& motion_pair : active_motions)
{
startMotion(motion_pair.first, motion_pair.second);
}