summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/window
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-02-01 16:42:19 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-02-02 12:07:12 +0100
commitd27ef675ec23f45562972da66bde02d99d778141 (patch)
treee6623a0e739b104f2f96ce30dd7e5f2b84c79945 /vcl/unx/generic/window
parent1287081fa5c132057e01c60a26c6f64156e5bc73 (diff)
Replace some front/pop_front by for-range loops+clear
Change-Id: I8a9239667b0d80ee2fa6ebbc8a19ba4c0076c2fb Reviewed-on: https://gerrit.libreoffice.org/49107 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/unx/generic/window')
-rw-r--r--vcl/unx/generic/window/salframe.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index 89ea99b6a7f9..c847b6300727 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -106,13 +106,13 @@ static int nVisibleFloats = 0;
static void doReparentPresentationDialogues( SalDisplay const * pDisplay )
{
GetGenericUnixSalData()->ErrorTrapPush();
- while( !aPresentationReparentList.empty() )
+ for (auto const& elem : aPresentationReparentList)
{
int x, y;
::Window aRoot, aChild;
unsigned int w, h, bw, d;
XGetGeometry( pDisplay->GetDisplay(),
- aPresentationReparentList.front(),
+ elem,
&aRoot,
&x, &y, &w, &h, &bw, &d );
XTranslateCoordinates( pDisplay->GetDisplay(),
@@ -122,11 +122,11 @@ static void doReparentPresentationDialogues( SalDisplay const * pDisplay )
&x, &y,
&aChild );
XReparentWindow( pDisplay->GetDisplay(),
- aPresentationReparentList.front(),
+ elem,
aRoot,
x, y );
- aPresentationReparentList.pop_front();
}
+ aPresentationReparentList.clear();
if( hPresFocusWindow )
XSetInputFocus( pDisplay->GetDisplay(), hPresFocusWindow, PointerRoot, CurrentTime );
XSync( pDisplay->GetDisplay(), False );