diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-05-29 10:53:16 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-29 05:57:48 +0200 |
commit | 6f46f1b8cef67c5fe16ac959ad919b246ead22aa (patch) | |
tree | b7bcdcbce1fa57dd0b3c40a6613df803eb7a8f9e /src/qml | |
parent | f9366cb1283e8358a17a48a827344d763ba8a5a7 (diff) |
Avoid using previously declared variables
Change-Id: Ie2f003cacc99fda00b666ed194cb044a7ee3faf1
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/animations/qparallelanimationgroupjob.cpp | 4 |
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(); |