summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/animationutils.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-05-01 14:00:48 +0100
committerMike Krus <mike.krus@kdab.com>2017-05-02 08:46:49 +0000
commitcb7dbc2e40f8258e92a79e8ac46d99a3b65c2a8c (patch)
tree53eeee700df4324e2a33b2f82ba64eabef3bb829 /src/animation/backend/animationutils.cpp
parent1cf81a67af6540d496439deeb43dab4028ff4bfb (diff)
Add missing reference in range-for with non trivial type (clazy reports)
Change-Id: Ib014b4ad7adc6604e600afc489e3dafaf0e299c1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/animationutils.cpp')
-rw-r--r--src/animation/backend/animationutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animation/backend/animationutils.cpp b/src/animation/backend/animationutils.cpp
index c9c7c29d4..1f675f271 100644
--- a/src/animation/backend/animationutils.cpp
+++ b/src/animation/backend/animationutils.cpp
@@ -197,7 +197,7 @@ ClipResults evaluateClipAtLocalTime(AnimationClip *clip, float localTime)
const QVector<Channel> &channels = clip->channels();
int i = 0;
for (const Channel &channel : channels) {
- for (const auto channelComponent : qAsConst(channel.channelComponents))
+ for (const auto &channelComponent : qAsConst(channel.channelComponents))
channelResults[i++] = channelComponent.fcurve.evaluateAtTime(localTime);
}
return channelResults;