Fix compile with strict iterator

This commit is contained in:
Montel Laurent 2011-10-30 20:29:28 +01:00
parent 585ef3c19f
commit 98b843e51f

View file

@ -224,7 +224,7 @@ void AnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data,
{ {
Q_D(AnimationEffect); Q_D(AnimationEffect);
if ( d->m_animated ) { if ( d->m_animated ) {
AniMap::const_iterator entry = d->m_animations.find( w ); AniMap::const_iterator entry = d->m_animations.constFind( w );
if ( entry != d->m_animations.constEnd() ) { if ( entry != d->m_animations.constEnd() ) {
bool isUsed = false; bool isUsed = false;
for (QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim) { for (QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim) {
@ -286,7 +286,7 @@ void AnimationEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Wi
{ {
Q_D(AnimationEffect); Q_D(AnimationEffect);
if ( d->m_animated ) { if ( d->m_animated ) {
AniMap::const_iterator entry = d->m_animations.find( w ); AniMap::const_iterator entry = d->m_animations.constFind( w );
if ( entry != d->m_animations.constEnd() ) { if ( entry != d->m_animations.constEnd() ) {
for ( QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim ) { for ( QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim ) {