diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-05-29 10:51:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-29 05:57:48 +0200 |
commit | 631ae154ce69a19643ff355454a300cdf61b75a1 (patch) | |
tree | b2574e06ad2520358d8f7e6d53bdb84b3a295ff3 /src/qml/animations | |
parent | 6f46f1b8cef67c5fe16ac959ad919b246ead22aa (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.cpp | 6 |
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); } |