sfx2/source/appl/appserv.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit b16fb9f4096a5bc9906de4b41d39e34f8282b8c3 Author: Florian Effenberger <flo...@documentfoundation.org> Date: Tue Aug 4 10:21:05 2015 +0000 tdf#89592 Initialize PropertyValue Sequences from initializer_lists Change-Id: I8d7b503bde5960094b1051d38400e52ce46bf986 Reviewed-on: https://gerrit.libreoffice.org/17503 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michael...@canonical.com> diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 02c6d12..611d403 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 ) ||
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits