avoid "deep" QVector copy
CCBUG: 217040 svn path=/trunk/KDE/kdebase/workspace/; revision=1064056
This commit is contained in:
parent
07368e7625
commit
d92c427d36
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue