const & for foreach 'iterators'

svn path=/trunk/KDE/kdebase/workspace/; revision=952187
icc-effect-5.14.5
Albert Astals Cid 2009-04-11 11:11:50 +00:00
parent 461580ed37
commit e74249083f
2 changed files with 2 additions and 2 deletions

View File

@ -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++ )
{

View File

@ -636,7 +636,7 @@ void KWinCompositingConfig::configChanged(bool reinitCompositing)
KService::List services;
QString message = i18n( "The following effects could not be activated:" );
message.append( "<ul>" );
foreach( QString effect, disabledEffects )
foreach( const QString &effect, disabledEffects )
{
services = trader->query("KWin/Effect", "[X-KDE-PluginInfo-Name] == '" + effect + "'");
message.append( "<li>" );