diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-09 13:43:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-09 14:24:00 +0200 |
commit | 027b25ecd54ac97ea2471ca73e3ba89ce052fe76 (patch) | |
tree | fe8923a13998a96a865027c897273d0edb4d7c62 /sw/source/filter/docx | |
parent | f59e802478e35e7b6f561f24806bca47b604529b (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 'sw/source/filter/docx')
-rw-r--r-- | sw/source/filter/docx/swdocxreader.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/docx/swdocxreader.cxx b/sw/source/filter/docx/swdocxreader.cxx index bba7dd1ff723..3f2bb22b4d26 100644 --- a/sw/source/filter/docx/swdocxreader.cxx +++ b/sw/source/filter/docx/swdocxreader.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/xml/dom/XNodeList.hpp> #include <comphelper/processfactory.hxx> #include <comphelper/propertyvalue.hxx> +#include <comphelper/propertysequence.hxx> #include <comphelper/sequenceashashmap.hxx> #include <docsh.hxx> #include <IDocumentStylePoolAccess.hxx> @@ -83,11 +84,10 @@ bool SwDOCXReader::ReadGlossaries( SwTextBlocks& rBlocks, bool /* bSaveRelFiles uno::Reference<io::XStream> xStream( new utl::OStreamWrapper( *pMedium->GetInStream() ) ); - uno::Sequence<beans::PropertyValue> aDescriptor( 2 ); - aDescriptor[0].Name = "InputStream"; - aDescriptor[0].Value <<= xStream; - aDescriptor[1].Name = "ReadGlossaries"; - aDescriptor[1].Value <<= true; + uno::Sequence<beans::PropertyValue> aDescriptor( comphelper::InitPropertySequence({ + { "InputStream", uno::Any(xStream) }, + { "ReadGlossaries", uno::Any(true) } + })); if( xFilter->filter( aDescriptor ) ) return MakeEntries( static_cast<SwDocShell*>( &xDocSh )->GetDoc(), rBlocks ); |