summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx10
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 ) ||