aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/animations
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-05-29 10:53:16 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-29 05:57:48 +0200
commit6f46f1b8cef67c5fe16ac959ad919b246ead22aa (patch)
treeb7bcdcbce1fa57dd0b3c40a6613df803eb7a8f9e /src/qml/animations
parentf9366cb1283e8358a17a48a827344d763ba8a5a7 (diff)
Avoid using previously declared variables
Change-Id: Ie2f003cacc99fda00b666ed194cb044a7ee3faf1 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/qml/animations')
-rw-r--r--src/qml/animations/qparallelanimationgroupjob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/animations/qparallelanimationgroupjob.cpp b/src/qml/animations/qparallelanimationgroupjob.cpp
index 0472c959f4..9d22e55f04 100644
--- a/src/qml/animations/qparallelanimationgroupjob.cpp
+++ b/src/qml/animations/qparallelanimationgroupjob.cpp
@@ -216,8 +216,8 @@ void QParallelAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimatio
return;
int maxDuration = 0;
- for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling())
- maxDuration = qMax(maxDuration, animation->totalDuration());
+ for (QAbstractAnimationJob *job = firstChild(); job; job = job->nextSibling())
+ maxDuration = qMax(maxDuration, job->totalDuration());
if (m_currentTime >= maxDuration)
stop();