summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/buildblendtreesjob.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-12-27 15:25:22 +0000
committerSean Harmer <sean.harmer@kdab.com>2018-01-13 16:15:19 +0000
commitc3b7cbd713c2434e91f0a2e306e6092037b5035f (patch)
tree135780c8b47cb3da7671749146b698b4a0925ca4 /src/animation/backend/buildblendtreesjob.cpp
parent56f0e3328386ee7bb82fa85601186e7dd0e853a9 (diff)
Iterate by const reference on handles
When iterating on handles, use const references to avoid copy of non trivial type. Found by Clazy clazy-range-loop Change-Id: I33ec54b3958160da2517e196411bcf92cd7b3bff Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/buildblendtreesjob.cpp')
-rw-r--r--src/animation/backend/buildblendtreesjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animation/backend/buildblendtreesjob.cpp b/src/animation/backend/buildblendtreesjob.cpp
index f35280cbf..cb7eb19c8 100644
--- a/src/animation/backend/buildblendtreesjob.cpp
+++ b/src/animation/backend/buildblendtreesjob.cpp
@@ -63,7 +63,7 @@ void BuildBlendTreesJob::setBlendedClipAnimators(const QVector<HBlendedClipAnima
// We assume that the structure of blend node tree does not change once a BlendClipAnimator has been set to running
void BuildBlendTreesJob::run()
{
- for (const HBlendedClipAnimator blendedClipAnimatorHandle : qAsConst(m_blendedClipAnimatorHandles)) {
+ for (const HBlendedClipAnimator &blendedClipAnimatorHandle : qAsConst(m_blendedClipAnimatorHandles)) {
// Retrieve BlendTree node
BlendedClipAnimator *blendClipAnimator = m_handler->blendedClipAnimatorManager()->data(blendedClipAnimatorHandle);
Q_ASSERT(blendClipAnimator);