[Libreoffice-commits] core.git: sfx2/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Aug 8 04:43:04 UTC 2016
sfx2/source/appl/workwin.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit a5a8006c4b77ea7fce4e6c808031c785373624eb
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Aug 8 04:06:38 2016 +0200
make clearer what the code is actually doing
Change-Id: Ic20f31f4fb3c2af3a479be238968904d37fcc668
Reviewed-on: https://gerrit.libreoffice.org/27945
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index c2c50c3..ec9cda9 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -614,10 +614,11 @@ void SfxWorkWindow::DeleteControllers_Impl()
}
// Delete Child-Windows
- for (size_t n=0; n<aChildWins.size(); )
+ while(!aChildWins.empty())
{
- SfxChildWin_Impl* pCW = aChildWins[n];
- aChildWins.erase(aChildWins.begin());
+ auto itr = aChildWins.begin();
+ SfxChildWin_Impl* pCW = *itr;
+ aChildWins.erase(itr);
SfxChildWindow *pChild = pCW->pWin;
if (pChild)
{
More information about the Libreoffice-commits
mailing list