summaryrefslogtreecommitdiff
path: root/sw/qa/extras/unowriter
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:13:45 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-31 15:48:50 +0100
commit3d469248ada8632a9d86efc80f2ac97dcb617c27 (patch)
treef444eae02ed277dc7520c0d49afe84b7ad72936b /sw/qa/extras/unowriter
parente5876404a3a70754b8a49aa0f405847b3fad96d8 (diff)
Prepare for removal of non-const operator[] from Sequence in sw
Change-Id: Ie9530262e4addec01091cc1147e68be5b5a782f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124398 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa/extras/unowriter')
-rw-r--r--sw/qa/extras/unowriter/unowriter.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/qa/extras/unowriter/unowriter.cxx b/sw/qa/extras/unowriter/unowriter.cxx
index a602259c30c2..e240970c7d13 100644
--- a/sw/qa/extras/unowriter/unowriter.cxx
+++ b/sw/qa/extras/unowriter/unowriter.cxx
@@ -668,11 +668,10 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testSetPagePrintSettings)
uno::Reference<text::XPagePrintable> xPagePrintable(mxComponent, uno::UNO_QUERY);
// set some stuff, try to get it back
- uno::Sequence<beans::PropertyValue> aProps(2);
- aProps[0].Name = "PageColumns";
- aProps[0].Value <<= sal_Int16(2);
- aProps[1].Name = "IsLandscape";
- aProps[1].Value <<= true;
+ uno::Sequence<beans::PropertyValue> aProps{
+ comphelper::makePropertyValue("PageColumns", sal_Int16(2)),
+ comphelper::makePropertyValue("IsLandscape", true)
+ };
xPagePrintable->setPagePrintSettings(aProps);
const comphelper::SequenceAsHashMap aMap(xPagePrintable->getPagePrintSettings());