diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index 4f640e614b..bacf7de196 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -1533,7 +1533,7 @@ void CubeEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowP quadSize = 150.0f; else quadSize = 250.0f; - foreach( QRect paintRect, paint.rects() ) + foreach( const QRect &paintRect, paint.rects() ) { for( int i=0; i<=(paintRect.height()/quadSize); i++ ) { diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index 9df80d0309..3d4bb90d6f 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -636,7 +636,7 @@ void KWinCompositingConfig::configChanged(bool reinitCompositing) KService::List services; QString message = i18n( "The following effects could not be activated:" ); message.append( "