diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-21 20:30:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-22 12:21:20 +0200 |
commit | 3bf3cae9b7b4d38e0427d71a2b34629fd5988af7 (patch) | |
tree | 1c582289baf6aabb814ea6263ab27d7afa3384f9 /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | 61bddaff3380f7700f58a41adedf8befd34d4d91 (diff) |
Replace some lists by vectors (vcl)
Change-Id: Id6f61cbbcd91e1a81e5ac23cdf19a6cda07f8659
Reviewed-on: https://gerrit.libreoffice.org/43675
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index bb3ffa456377..c3d0ecc42e75 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -370,13 +370,12 @@ void CairoTextRender::GetDevFontList( PhysicalFontCollection* pFontCollection ) GlyphCache& rGC = getPlatformGlyphCache(); psp::PrintFontManager& rMgr = psp::PrintFontManager::get(); - ::std::list< psp::fontID > aList; - ::std::list< psp::fontID >::iterator it; + ::std::vector< psp::fontID > aList; psp::FastPrintFontInfo aInfo; rMgr.getFontList( aList ); - for( it = aList.begin(); it != aList.end(); ++it ) + for (auto const& elem : aList) { - if( !rMgr.getFontFastInfo( *it, aInfo ) ) + if( !rMgr.getFontFastInfo( elem, aInfo ) ) continue; // normalize face number to the GlyphCache |