sfx2/source/appl/workwin.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit a5a8006c4b77ea7fce4e6c808031c785373624eb Author: Markus Mohrhard <markus.mohrh...@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 <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits