Avoid using previously declared variables
authorCharles Yin <charles.yin@nokia.com>
Tue, 29 May 2012 00:53:16 +0000 (10:53 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 03:57:48 +0000 (05:57 +0200)
Change-Id: Ie2f003cacc99fda00b666ed194cb044a7ee3faf1
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/animations/qparallelanimationgroupjob.cpp

index 0472c95..9d22e55 100644 (file)
@@ -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();