summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/buildblendtreesjob.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-05-01 14:19:09 +0100
committerMike Krus <mike.krus@kdab.com>2017-05-02 08:47:01 +0000
commit348956c8e270d0c38f495201b99b21634c75b0fa (patch)
treeec3848bdb1358ad7202f13838e7792cd10e62713 /src/animation/backend/buildblendtreesjob.cpp
parentcb7dbc2e40f8258e92a79e8ac46d99a3b65c2a8c (diff)
Add qAsConst, range-loop might detach Qt container (clazy reports)
Change-Id: I5d541cd0d08f17c25cbb839c111417130d133c3c 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 ac95808bc..fe56099a2 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 : m_blendedClipAnimatorHandles) {
+ for (const HBlendedClipAnimator blendedClipAnimatorHandle : qAsConst(m_blendedClipAnimatorHandles)) {
// Retrieve BlendTree node
BlendedClipAnimator *blendClipAnimator = m_handler->blendedClipAnimatorManager()->data(blendedClipAnimatorHandle);
Q_ASSERT(blendClipAnimator);