summaryrefslogtreecommitdiff
path: root/svx/source/gallery2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-04-20 19:44:09 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-04-20 18:34:45 +0000
commit5bb308a9ad16f6002486a60e4a753693818580b6 (patch)
treeec0418a72a13492835eb71b810719615e448798f /svx/source/gallery2
parentb7e3c63f1a384a278da4f6515f5279dbd5f46772 (diff)
Revert partly some of my previous patches
to avoid invalidation of end iterators Change-Id: I0970b6d753ee1dd1f4805d0d27b8eb4f8210581b Reviewed-on: https://gerrit.libreoffice.org/24265 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r--svx/source/gallery2/galtheme.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 795134c3b027..9ecaca4f5202 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -591,8 +591,7 @@ void GalleryTheme::Actualize( const Link<const INetURLObject&, void>& rActualize
}
// remove all entries with set flag
- GalleryObjectList::const_iterator aEnd = aObjectList.end();
- for ( GalleryObjectList::iterator it = aObjectList.begin(); it != aEnd ; /* increment is in the body of loop */)
+ for ( GalleryObjectList::iterator it = aObjectList.begin(); it != aObjectList.end(); /* increment is in the body of loop */)
{
if( (*it)->mbDelete )
{