diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 09:45:16 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 11:15:49 +0200 |
commit | fbb4c0955d8c346c385e2ad72b061572475cb1fc (patch) | |
tree | 5f83657a1eb20196fe9cd1cd22c15e056a8e98af /hwpfilter | |
parent | 1635f94ad500bc323c04738d62a7af0e64034221 (diff) |
Prepare for removal of non-const operator[] from Sequence in hwpfilter
Change-Id: I43690203f91cc9bc575470de58c7d1198d2ee7c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124371
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/qa/cppunit/test_hwpfilter.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hwpfilter/qa/cppunit/test_hwpfilter.cxx b/hwpfilter/qa/cppunit/test_hwpfilter.cxx index 125b115cc3d2..2bb942aba5a0 100644 --- a/hwpfilter/qa/cppunit/test_hwpfilter.cxx +++ b/hwpfilter/qa/cppunit/test_hwpfilter.cxx @@ -11,6 +11,7 @@ #include <test/bootstrapfixture.hxx> #include <com/sun/star/document/XFilter.hpp> +#include <comphelper/propertyvalue.hxx> #include <osl/file.hxx> #include <osl/process.h> #include <osl/thread.h> @@ -43,10 +44,7 @@ namespace uno::Reference<document::XFilter> xFilter(m_xSFactory->createInstance("com.sun.comp.hwpimport.HwpImportFilter"), uno::UNO_QUERY_THROW); - uno::Sequence< beans::PropertyValue > aDescriptor(1); - aDescriptor[0].Name = "URL"; - aDescriptor[0].Value <<= rURL; - return xFilter->filter(aDescriptor); + return xFilter->filter({ comphelper::makePropertyValue("URL", rURL) }); } void HwpFilterTest::test() |