diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-21 09:54:04 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-21 10:44:43 +0200 |
commit | 0c46b3a9a384d5b70a708c3e9459a790dd815c63 (patch) | |
tree | 4dadd539235d716e56a08bdcddd776107808852b /vcl/unx | |
parent | e26f8d2592a3d7cc5b43b3246b364397dd704f0d (diff) |
Replace list by vector for maPS3Font (vcl)
Change-Id: Ida0d1a87e32024430fd314c601b9acb9358a9dd2
Reviewed-on: https://gerrit.libreoffice.org/43641
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/print/text_gfx.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/generic/print/text_gfx.cxx b/vcl/unx/generic/print/text_gfx.cxx index 24747ae119db..59b74614e0a1 100644 --- a/vcl/unx/generic/print/text_gfx.cxx +++ b/vcl/unx/generic/print/text_gfx.cxx @@ -66,7 +66,7 @@ void PrinterGfx::drawGlyph(const Point& rPoint, // draw the string // search for a glyph set matching the set font - std::list< GlyphSet >::iterator aIter; + std::vector< GlyphSet >::iterator aIter; for (aIter = maPS3Font.begin(); aIter != maPS3Font.end(); ++aIter) if ( ((*aIter).GetFontID() == mnFontID) && ((*aIter).IsVertical() == mbTextVertical)) @@ -158,10 +158,9 @@ void PrinterGfx::writeResources( osl::File* pFile, std::list< OString >& rSuppliedFonts ) { // write glyphsets and reencodings - std::list< GlyphSet >::iterator aIter; - for (aIter = maPS3Font.begin(); aIter != maPS3Font.end(); ++aIter) + for (auto & PS3Font : maPS3Font) { - aIter->PSUploadFont (*pFile, *this, mbUploadPS42Fonts, rSuppliedFonts ); + PS3Font.PSUploadFont (*pFile, *this, mbUploadPS42Fonts, rSuppliedFonts ); } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |