diff options
author | Fawrsk <45524015+Fawrsk@users.noreply.github.com> | 2023-01-03 17:08:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 23:08:15 +0200 |
commit | 74a9280c698b4f88a46549923a2d717b82dd7ee2 (patch) | |
tree | 029f57168a5f69cb7eb60b21faddecdeadec0f26 /indra/llappearance/llavatarjointmesh.cpp | |
parent | 43496fe04e7dadae230da5b633a389ba0b7c0b0b (diff) |
SL-18893 Clean up for loops in llappearance to use C++11 range based for loops (#38)
Diffstat (limited to 'indra/llappearance/llavatarjointmesh.cpp')
-rw-r--r-- | indra/llappearance/llavatarjointmesh.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llappearance/llavatarjointmesh.cpp b/indra/llappearance/llavatarjointmesh.cpp index 0a23b1fda3..aa1a216678 100644 --- a/indra/llappearance/llavatarjointmesh.cpp +++ b/indra/llappearance/llavatarjointmesh.cpp @@ -379,10 +379,9 @@ void LLAvatarJointMesh::setupJoint(LLAvatarJoint* current_joint) } // depth-first traversal - for (LLJoint::joints_t::iterator iter = current_joint->mChildren.begin(); - iter != current_joint->mChildren.end(); ++iter) + for (auto joint : current_joint->mChildren) { - LLAvatarJoint* child_joint = (LLAvatarJoint*)(*iter); + LLAvatarJoint* child_joint = (LLAvatarJoint*)joint; setupJoint(child_joint); } } |