diff options
author | Florian Effenberger <floeff@documentfoundation.org> | 2015-08-04 10:21:05 +0000 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2015-08-09 22:33:51 +0000 |
commit | b16fb9f4096a5bc9906de4b41d39e34f8282b8c3 (patch) | |
tree | 76378a0e5cd42e11b35749954bcf3733b847d0ff | |
parent | 9a1a6b99ebd669ee8d754db45545fa04da64b693 (diff) |
tdf#89592 Initialize PropertyValue Sequences from initializer_lists
Change-Id: I8d7b503bde5960094b1051d38400e52ce46bf986
Reviewed-on: https://gerrit.libreoffice.org/17503
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 02c6d1241c5c..611d403f1457 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -47,6 +47,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/storagehelper.hxx> +#include <comphelper/propertysequence.hxx> #include <svtools/addresstemplate.hxx> #include <svtools/miscopt.hxx> @@ -221,11 +222,10 @@ static void showDocument( const char* pBaseName ) { try { Reference < XDesktop2 > xDesktop = Desktop::create( ::comphelper::getProcessComponentContext() ); - Sequence < com::sun::star::beans::PropertyValue > args(2); - args[0].Name = "ViewOnly"; - args[0].Value <<= sal_True; - args[1].Name = "ReadOnly"; - args[1].Value <<= sal_True; + auto args(::comphelper::InitPropertySequence({ + {"ViewOnly", makeAny(sal_True)}, + {"ReadOnly", makeAny(sal_True)} + })); OUString aURL; if ( checkURL ( pBaseName, ".fodt", aURL ) || |