diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:06:09 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-31 06:57:21 +0100 |
commit | d07c4fe7681d90f20c4c0dafefc3439e8265e734 (patch) | |
tree | 8938b51f8a94875bf8798fb2c76338fd9bf13883 /smoketest | |
parent | df16e70378cdc80b3e4c1327704a2781a4c57992 (diff) |
Prepare for removal of non-const operator[] from Sequence in smoketest
Change-Id: Ica192dfb16716b4fb38d59eee0a39c6dd411b6a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124390
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/smoketest.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/smoketest/smoketest.cxx b/smoketest/smoketest.cxx index a60f58167f66..80a29036f19b 100644 --- a/smoketest/smoketest.cxx +++ b/smoketest/smoketest.cxx @@ -140,15 +140,16 @@ void Test::test() { CPPUNIT_ASSERT( test::getTestArgument( u"smoketest.doc", &doc)); - css::uno::Sequence< css::beans::PropertyValue > args(2); - args[0].Name = "MacroExecutionMode"; - args[0].Handle = -1; - args[0].Value <<= css::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN; - args[0].State = css::beans::PropertyState_DIRECT_VALUE; - args[1].Name = "ReadOnly"; - args[1].Handle = -1; - args[1].Value <<= true; - args[1].State = css::beans::PropertyState_DIRECT_VALUE; + css::uno::Sequence< css::beans::PropertyValue > args{ + { /* Name */ "MacroExecutionMode", + /* Handle */ -1, + /* Value */ css::uno::Any(css::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN), + /* State */ css::beans::PropertyState_DIRECT_VALUE }, + { /* Name */ "ReadOnly", + /* Handle */ -1, + /* Value */ css::uno::Any(true), + /* State */ css::beans::PropertyState_DIRECT_VALUE } + }; css::util::URL url; url.Complete = "vnd.sun.star.script:Standard.Global.StartTestWithDefaultOptions?" "language=Basic&location=document"; |