aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/animations
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-05-29 10:51:21 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-29 05:57:48 +0200
commit631ae154ce69a19643ff355454a300cdf61b75a1 (patch)
treeb2574e06ad2520358d8f7e6d53bdb84b3a295ff3 /src/qml/animations
parent6f46f1b8cef67c5fe16ac959ad919b246ead22aa (diff)
Avoid using previously declared variables
Change-Id: Ia4ba88bef012cee7329244adf10c219bd763a936 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/qml/animations')
-rw-r--r--src/qml/animations/qsequentialanimationgroupjob.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/animations/qsequentialanimationgroupjob.cpp b/src/qml/animations/qsequentialanimationgroupjob.cpp
index 12cce39fbc..83860ebe2e 100644
--- a/src/qml/animations/qsequentialanimationgroupjob.cpp
+++ b/src/qml/animations/qsequentialanimationgroupjob.cpp
@@ -368,10 +368,10 @@ void QSequentialAnimationGroupJob::animationRemoved(QAbstractAnimationJob *anim,
// duration of the previous animations up to the current animation
m_currentTime = 0;
- for (QAbstractAnimationJob *anim = firstChild(); anim; anim = anim->nextSibling()) {
- if (anim == m_currentAnimation)
+ for (QAbstractAnimationJob *job = firstChild(); job; job = job->nextSibling()) {
+ if (job == m_currentAnimation)
break;
- m_currentTime += animationActualTotalDuration(anim);
+ m_currentTime += animationActualTotalDuration(job);
}