diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-11-01 08:03:21 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-11-01 10:26:48 +0100 |
commit | fedb29b305a73dc471ce7035406b5dc489011972 (patch) | |
tree | 4acfe185eb00e564ea44dfd114d6ee2095c1ed32 /vcl/unx/generic/print | |
parent | 508797b6734d0798f5ea903bf6fb516b58780e4e (diff) |
Replace some lists by vectors in generic/print (vcl)
Change-Id: I1fdbdbb62a30a3bd81b7e24bf15c8ccb64a2ef44
Reviewed-on: https://gerrit.libreoffice.org/44151
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/unx/generic/print')
-rw-r--r-- | vcl/unx/generic/print/glyphset.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/print/glyphset.hxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/print/printerjob.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/print/text_gfx.cxx | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/vcl/unx/generic/print/glyphset.cxx b/vcl/unx/generic/print/glyphset.cxx index a29d331d53ed..1d60d7510145 100644 --- a/vcl/unx/generic/print/glyphset.cxx +++ b/vcl/unx/generic/print/glyphset.cxx @@ -246,7 +246,7 @@ static void CreatePSUploadableFont( TrueTypeFont* pSrcFont, FILE* pTmpFile, } void -GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42, std::list< OString >& rSuppliedFonts ) +GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42, std::vector< OString >& rSuppliedFonts ) { TrueTypeFont *pTTFont; OString aTTFileName (rGfx.GetFontMgr().getFontFileSysPath(mnFontID)); diff --git a/vcl/unx/generic/print/glyphset.hxx b/vcl/unx/generic/print/glyphset.hxx index 8122d5838a35..45d0c81d6474 100644 --- a/vcl/unx/generic/print/glyphset.hxx +++ b/vcl/unx/generic/print/glyphset.hxx @@ -26,7 +26,7 @@ #include <rtl/string.hxx> -#include <list> +#include <vector> #include <unordered_map> class Point; @@ -45,7 +45,7 @@ private: OString maBaseName; typedef std::unordered_map< sal_GlyphId, sal_uInt8 > glyph_map_t; - typedef std::list< glyph_map_t > glyph_list_t; + typedef std::vector< glyph_map_t > glyph_list_t; glyph_list_t maGlyphList; @@ -76,7 +76,7 @@ public: const Point& rPoint, const sal_GlyphId nGlyphId, const sal_Int32 nDelta); - void PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAsType42, std::list< OString >& rSuppliedFonts ); + void PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAsType42, std::vector< OString >& rSuppliedFonts ); }; } /* namespace psp */ diff --git a/vcl/unx/generic/print/printerjob.cxx b/vcl/unx/generic/print/printerjob.cxx index a086d253f5db..d1eac841c92c 100644 --- a/vcl/unx/generic/print/printerjob.cxx +++ b/vcl/unx/generic/print/printerjob.cxx @@ -950,12 +950,12 @@ bool PrinterJob::writeSetup( osl::File* pFile, const JobData& rJob ) WritePS (pFile, "%%BeginSetup\n%\n"); // download fonts - std::list< OString > aFonts; + std::vector< OString > aFonts; m_pGraphics->writeResources( pFile, aFonts ); if( !aFonts.empty() ) { - std::list< OString >::const_iterator it = aFonts.begin(); + std::vector< OString >::const_iterator it = aFonts.begin(); OStringBuffer aLine( 256 ); aLine.append( "%%DocumentSuppliedResources: font " ); aLine.append( *it ); diff --git a/vcl/unx/generic/print/text_gfx.cxx b/vcl/unx/generic/print/text_gfx.cxx index 0d9411eb6b9f..ef71ac409e2b 100644 --- a/vcl/unx/generic/print/text_gfx.cxx +++ b/vcl/unx/generic/print/text_gfx.cxx @@ -155,7 +155,7 @@ PrinterGfx::OnEndJob () } void -PrinterGfx::writeResources( osl::File* pFile, std::list< OString >& rSuppliedFonts ) +PrinterGfx::writeResources( osl::File* pFile, std::vector< OString >& rSuppliedFonts ) { // write glyphsets and reencodings for (auto & PS3Font : maPS3Font) |