diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-08-09 12:47:51 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-08-09 12:47:51 +0200 |
commit | a53ea24f9a3e31669f83ff76cdddfec9aec90389 (patch) | |
tree | 087db7bc46fe546f44873d91af261f9f3eff2d82 /sfx2 | |
parent | af5fe812c8916483604b6bad1c1b4b9741577d5c (diff) |
sfx2: add comment to avoid range-based for loop
Change-Id: I7bdbe6eec52bdf76e1b93729e73d10b8be974fcc
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index ec9cda9822a9..7a93679a28e3 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -1290,9 +1290,11 @@ void SfxWorkWindow::UpdateObjectBars_Impl() void SfxWorkWindow::UpdateChildWindows_Impl() { - // any current or in the context available Childwindows + // tdf#100870, tdf#101320: don't use range-based for loop when + // container is modified for ( size_t n=0; n<aChildWins.size(); n++ ) { + // any current or in the context available Childwindows SfxChildWin_Impl *pCW = aChildWins[n]; SfxChildWindow *pChildWin = pCW->pWin; bool bCreate = false; |