diff options
author | Fawrsk <fawrsk@gmail.com> | 2023-01-05 07:42:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 13:42:27 +0200 |
commit | d0f115ae093e8268da2a3245d6cb2f3bcc544f1c (patch) | |
tree | a85ec8f19e1ceceee819a9dd70d3effddb1be677 /indra/llcharacter/llpose.cpp | |
parent | bdfb47cc6bd6af77ec7cd4c04f83606c222ac437 (diff) |
SL-18893 Cleanup for loops in llcharacter to use C++11 range based for loops (#42)
Diffstat (limited to 'indra/llcharacter/llpose.cpp')
-rw-r--r-- | indra/llcharacter/llpose.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llcharacter/llpose.cpp b/indra/llcharacter/llpose.cpp index fc95fafd61..a7156a250b 100644 --- a/indra/llcharacter/llpose.cpp +++ b/indra/llcharacter/llpose.cpp @@ -148,11 +148,9 @@ LLJointState* LLPose::findJointState(const std::string &name) void LLPose::setWeight(F32 weight) { joint_map_iterator iter; - for(iter = mJointMap.begin(); - iter != mJointMap.end(); - ++iter) + for (joint_map_value_type joint_pair : mJointMap) { - iter->second->setWeight(weight); + joint_pair.second->setWeight(weight); } mWeight = weight; } |