avoid "deep" QVector copy

CCBUG: 217040

svn path=/trunk/KDE/kdebase/workspace/; revision=1064056
This commit is contained in:
Thomas Lübking 2009-12-20 01:49:39 +00:00
parent 07368e7625
commit d92c427d36

View file

@ -324,7 +324,7 @@ QRegion Workspace::previousRestrictedMoveArea( int desktop, StrutAreas areas ) c
if( desktop == NETWinInfo::OnAllDesktops || desktop == 0 ) if( desktop == NETWinInfo::OnAllDesktops || desktop == 0 )
desktop = currentDesktop(); desktop = currentDesktop();
QRegion region; QRegion region;
foreach( const StrutRect& rect, oldrestrictedmovearea[desktop] ) foreach( const StrutRect& rect, oldrestrictedmovearea.at(desktop) )
if( areas & rect.area() ) if( areas & rect.area() )
region += rect; region += rect;
return region; return region;