From 0500de67884465b3fb0ed684deca13acaa4a79ef Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 3 Nov 2010 08:34:01 +0000 Subject: [PATCH] Fix compile with strict iterator svn path=/trunk/KDE/kdebase/workspace/; revision=1192456 --- effects/glide/glide.cpp | 6 +++--- effects/sheet/sheet.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/effects/glide/glide.cpp b/effects/glide/glide.cpp index ad6493240a..33e3bdc3e5 100644 --- a/effects/glide/glide.cpp +++ b/effects/glide/glide.cpp @@ -85,7 +85,7 @@ void GlideEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int void GlideEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ) { - InfoHash::const_iterator info = windows.find( w ); + InfoHash::const_iterator info = windows.constFind( w ); if( info != windows.constEnd() ) { const double progress = info->timeLine.value(); @@ -118,7 +118,7 @@ void GlideEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Window void GlideEffect::glideIn(EffectWindow* w, WindowPaintData& data ) { - InfoHash::const_iterator info = windows.find( w ); + InfoHash::const_iterator info = windows.constFind( w ); if ( info == windows.constEnd() ) return; const double progress = info->timeLine.value(); @@ -131,7 +131,7 @@ void GlideEffect::glideIn(EffectWindow* w, WindowPaintData& data ) void GlideEffect::glideOut(EffectWindow* w, WindowPaintData& data ) { - InfoHash::const_iterator info = windows.find( w ); + InfoHash::const_iterator info = windows.constFind( w ); if ( info == windows.constEnd() ) return; const double progress = info->timeLine.value(); diff --git a/effects/sheet/sheet.cpp b/effects/sheet/sheet.cpp index 28941319ff..a130384296 100644 --- a/effects/sheet/sheet.cpp +++ b/effects/sheet/sheet.cpp @@ -85,7 +85,7 @@ void SheetEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int void SheetEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ) { - InfoMap::const_iterator info = windows.find( w ); + InfoMap::const_iterator info = windows.constFind( w ); if( info != windows.constEnd() ) { const double progress = info->timeLine.value();