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>
diff --git a/vcl/inc/unx/printergfx.hxx b/vcl/inc/unx/printergfx.hxx
index 33aaa79..6861322 100644
--- a/vcl/inc/unx/printergfx.hxx
+++ b/vcl/inc/unx/printergfx.hxx
@@ -179,7 +179,7 @@ private:
       glyph in one of the subfonts, the mapping from unicode to the
       glyph has to be remembered */

    std::list< GlyphSet > maPS3Font;
    std::vector< GlyphSet > maPS3Font;

    sal_Int32       mnFontID;
    sal_Int32       mnTextAngle;
diff --git a/vcl/unx/generic/print/text_gfx.cxx b/vcl/unx/generic/print/text_gfx.cxx
index 24747ae..59b7461 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: */