diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-03 11:12:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-03 13:57:22 +0200 |
commit | cccc9246bbfbaf70fe6946f9416c902af146110a (patch) | |
tree | ceb10b4094c7a0a1d67e62c4a34c0487016c93c1 /filter | |
parent | 66068169220a9fc387e7002b69fc9e32b028cd8d (diff) |
use comphelper::containerToSequence
Change-Id: Ibd3e5a2c465f74577f2acf93dc3558bca3a323fb
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/pdf/pdfexport.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx index 3ad411e98bce..458edd8720bb 100644 --- a/filter/source/pdf/pdfexport.cxx +++ b/filter/source/pdf/pdfexport.cxx @@ -38,6 +38,7 @@ #include <vcl/graphicfilter.hxx> #include <vcl/settings.hxx> #include "svl/solar.hrc" +#include "comphelper/sequence.hxx" #include "comphelper/string.hxx" #include "comphelper/storagehelper.hxx" #include "unotools/streamwrap.hxx" @@ -1003,13 +1004,7 @@ void PDFExport::showErrors( const std::set< vcl::PDFWriter::ErrorCode >& rErrors if( ! rErrors.empty() && mxIH.is() ) { task::PDFExportException aExc; - aExc.ErrorCodes.realloc( sal_Int32(rErrors.size()) ); - sal_Int32 i = 0; - for( std::set< vcl::PDFWriter::ErrorCode >::const_iterator it = rErrors.begin(); - it != rErrors.end(); ++it, i++ ) - { - aExc.ErrorCodes.getArray()[i] = (sal_Int32)*it; - } + aExc.ErrorCodes = comphelper::containerToSequence<sal_Int32>( rErrors ); Reference< task::XInteractionRequest > xReq( new PDFErrorRequest( aExc ) ); mxIH->handle( xReq ); } |