summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 13:43:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 14:24:00 +0200
commit027b25ecd54ac97ea2471ca73e3ba89ce052fe76 (patch)
treefe8923a13998a96a865027c897273d0edb4d7c62 /sdext
parentf59e802478e35e7b6f561f24806bca47b604529b (diff)
use comphelper::InitPropertySequence in more places
Change-Id: I72d7b13a23ce306b752b39187a0e9fbb7028643a Reviewed-on: https://gerrit.libreoffice.org/38606 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx19
1 files changed, 6 insertions, 13 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index a31e78cb1100..1fa018c5bd31 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -35,6 +35,7 @@
#include "rtl/strbuf.hxx"
#include "rtl/byteseq.hxx"
+#include <comphelper/propertysequence.hxx>
#include "cppuhelper/exc_hlp.hxx"
#include "com/sun/star/io/XInputStream.hpp"
#include "com/sun/star/uno/XComponentContext.hpp"
@@ -718,19 +719,11 @@ uno::Sequence<beans::PropertyValue> Parser::readImageImpl()
xFactory->createInstanceWithArgumentsAndContext( "com.sun.star.io.SequenceInputStream", aStreamCreationArgs, m_xContext ),
uno::UNO_QUERY_THROW );
- uno::Sequence<beans::PropertyValue> aSequence(3);
- aSequence[0] = beans::PropertyValue( "URL",
- 0,
- uno::makeAny(aFileName),
- beans::PropertyState_DIRECT_VALUE );
- aSequence[1] = beans::PropertyValue( "InputStream",
- 0,
- uno::makeAny( xDataStream ),
- beans::PropertyState_DIRECT_VALUE );
- aSequence[2] = beans::PropertyValue( "InputSequence",
- 0,
- uno::makeAny(aDataSequence),
- beans::PropertyState_DIRECT_VALUE );
+ uno::Sequence<beans::PropertyValue> aSequence( comphelper::InitPropertySequence({
+ { "URL", uno::makeAny(aFileName) },
+ { "InputStream", uno::makeAny( xDataStream ) },
+ { "InputSequence", uno::makeAny(aDataSequence) }
+ }));
return aSequence;
}