const & for foreach 'iterators'
svn path=/trunk/KDE/kdebase/workspace/; revision=952187
This commit is contained in:
parent
461580ed37
commit
e74249083f
2 changed files with 2 additions and 2 deletions
|
@ -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++ )
|
||||
{
|
||||
|
|
|
@ -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>" );
|
||||
|
|
Loading…
Reference in a new issue