From 98b843e51fe73038d632d33f43fde6ea3979a75e Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Sun, 30 Oct 2011 20:29:28 +0100 Subject: [PATCH] Fix compile with strict iterator --- libkwineffects/kwinanimationeffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libkwineffects/kwinanimationeffect.cpp b/libkwineffects/kwinanimationeffect.cpp index 51180ab079..472c64d36d 100644 --- a/libkwineffects/kwinanimationeffect.cpp +++ b/libkwineffects/kwinanimationeffect.cpp @@ -224,7 +224,7 @@ void AnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, { Q_D(AnimationEffect); 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() ) { bool isUsed = false; for (QList::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); 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() ) { for ( QList::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim ) {