diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-08 04:06:38 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-08 04:42:20 +0000 |
commit | a5a8006c4b77ea7fce4e6c808031c785373624eb (patch) | |
tree | 73a1c8e9dfc795083e28bc23db187e8077b8d47e /sfx2 | |
parent | 97cae1350fc83f8aed56e008d0ae08b669bd2933 (diff) |
make clearer what the code is actually doing
Change-Id: Ic20f31f4fb3c2af3a479be238968904d37fcc668
Reviewed-on: https://gerrit.libreoffice.org/27945
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index c2c50c309b28..ec9cda9822a9 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) { |