From 3d469248ada8632a9d86efc80f2ac97dcb617c27 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 29 Oct 2021 10:13:45 +0300 Subject: 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 --- sw/qa/uibase/uiview/uiview.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sw/qa/uibase/uiview/uiview.cxx') diff --git a/sw/qa/uibase/uiview/uiview.cxx b/sw/qa/uibase/uiview/uiview.cxx index 6711aa15b115..880485487207 100644 --- a/sw/qa/uibase/uiview/uiview.cxx +++ b/sw/qa/uibase/uiview/uiview.cxx @@ -65,9 +65,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseUiviewTest, testUpdateAllObjectReplacements) uno::Reference xInterface = xFactory->createInstance("com.sun.star.frame.Desktop"); uno::Reference xComponentLoader(xInterface, uno::UNO_QUERY); - uno::Sequence aLoadArgs(1); - aLoadArgs[0].Name = "Hidden"; - aLoadArgs[0].Value <<= true; + uno::Sequence aLoadArgs{ comphelper::makePropertyValue("Hidden", true) }; mxComponent = xComponentLoader->loadComponentFromURL(sTempCopy, "_default", 0, aLoadArgs); // Perform the .uno:UpdateAll call and save -- cgit