diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-04-17 22:54:57 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-04-18 05:08:47 +0000 |
commit | 101e5bbc8aaa77d5db36e0969a512b5a283f1672 (patch) | |
tree | 323ec88fb975a6c80eb171a36722e38aaa565ba6 /svx/source/gallery2/gallery1.cxx | |
parent | 92ddd584f1b8777932d86e26120977b9b66af8a4 (diff) |
Use const_iterator when possible (svx/gallery2,items,sdr,stbctrls)
Change-Id: Idd8992fcb76c25120202b24a23820d85ca09e434
Reviewed-on: https://gerrit.libreoffice.org/24174
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/gallery2/gallery1.cxx')
-rw-r--r-- | svx/source/gallery2/gallery1.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 7ffa2d0802f3..94e51e36e81e 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -570,7 +570,8 @@ bool Gallery::RemoveTheme( const OUString& rThemeName ) KillFile( aStrURL ); } - for ( GalleryThemeList::iterator it = aThemeList.begin(); it != aThemeList.end(); ++it ) + GalleryThemeList::const_iterator aEnd = aThemeList.end(); + for ( GalleryThemeList::iterator it = aThemeList.begin(); it != aEnd; ++it ) { if ( pThemeEntry == *it ) { delete pThemeEntry; @@ -641,7 +642,8 @@ GalleryTheme* Gallery::ImplGetCachedTheme(const GalleryThemeEntry* pThemeEntry) void Gallery::ImplDeleteCachedTheme( GalleryTheme* pTheme ) { - for (GalleryCacheThemeList::iterator it = aThemeCache.begin(); it != aThemeCache.end(); ++it) + GalleryCacheThemeList::const_iterator aEnd = aThemeCache.end(); + for (GalleryCacheThemeList::iterator it = aThemeCache.begin(); it != aEnd; ++it) { if (pTheme == (*it)->GetTheme()) { |