diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-01-31 11:49:59 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-01-31 15:56:25 +0100 |
commit | 8b700053cf1b91fbc728cb0b69b6efe21ab61248 (patch) | |
tree | a4e4ac2c830bc826469453d97705f44f80bfe678 /vcl/unx/generic/glyphs/glyphcache.cxx | |
parent | b843f01c5d3fbdb179cb208083938f26f28a8ed4 (diff) |
Modernize a bit vcl (part5)
by using for range loops
Change-Id: I52d6e6c9e1c2c321dc81d8258943a1a9a611441c
Reviewed-on: https://gerrit.libreoffice.org/48987
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/unx/generic/glyphs/glyphcache.cxx')
-rw-r--r-- | vcl/unx/generic/glyphs/glyphcache.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx index fa5bfb6a5de1..4029d4bdf7bc 100644 --- a/vcl/unx/generic/glyphs/glyphcache.cxx +++ b/vcl/unx/generic/glyphs/glyphcache.cxx @@ -49,9 +49,9 @@ GlyphCache::~GlyphCache() void GlyphCache::InvalidateAllGlyphs() { - for( FontList::iterator it = maFontList.begin(), end = maFontList.end(); it != end; ++it ) + for (auto const& font : maFontList) { - FreetypeFont* pFreetypeFont = it->second; + FreetypeFont* pFreetypeFont = font.second; // free all pFreetypeFont related data pFreetypeFont->GarbageCollect( mnLruIndex+0x10000000 ); delete pFreetypeFont; @@ -63,9 +63,9 @@ void GlyphCache::InvalidateAllGlyphs() void GlyphCache::ClearFontOptions() { - for( FontList::iterator it = maFontList.begin(), end = maFontList.end(); it != end; ++it ) + for (auto const& font : maFontList) { - FreetypeFont* pFreetypeFont = it->second; + FreetypeFont* pFreetypeFont = font.second; // free demand-loaded FontConfig related data pFreetypeFont->ClearFontOptions(); } |