Kaydet (Commit) cccc9246 authored tarafından Noel Grandin's avatar Noel Grandin

use comphelper::containerToSequence

Change-Id: Ibd3e5a2c465f74577f2acf93dc3558bca3a323fb
üst 66068169
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <vcl/graphicfilter.hxx> #include <vcl/graphicfilter.hxx>
#include <vcl/settings.hxx> #include <vcl/settings.hxx>
#include "svl/solar.hrc" #include "svl/solar.hrc"
#include "comphelper/sequence.hxx"
#include "comphelper/string.hxx" #include "comphelper/string.hxx"
#include "comphelper/storagehelper.hxx" #include "comphelper/storagehelper.hxx"
#include "unotools/streamwrap.hxx" #include "unotools/streamwrap.hxx"
...@@ -1003,13 +1004,7 @@ void PDFExport::showErrors( const std::set< vcl::PDFWriter::ErrorCode >& rErrors ...@@ -1003,13 +1004,7 @@ void PDFExport::showErrors( const std::set< vcl::PDFWriter::ErrorCode >& rErrors
if( ! rErrors.empty() && mxIH.is() ) if( ! rErrors.empty() && mxIH.is() )
{ {
task::PDFExportException aExc; task::PDFExportException aExc;
aExc.ErrorCodes.realloc( sal_Int32(rErrors.size()) ); aExc.ErrorCodes = comphelper::containerToSequence<sal_Int32>( rErrors );
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;
}
Reference< task::XInteractionRequest > xReq( new PDFErrorRequest( aExc ) ); Reference< task::XInteractionRequest > xReq( new PDFErrorRequest( aExc ) );
mxIH->handle( xReq ); mxIH->handle( xReq );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment