Change-Id: Ia4ba88bef012cee7329244adf10c219bd763a936
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
// 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);
}