summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk
diff options
context:
space:
mode:
authorJacek Fraczek <fraczek.jacek@gmail.com>2018-06-23 21:28:30 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-07-02 14:06:40 +0200
commit10b34eb9f33a19e1189bd822244c04484ae06404 (patch)
tree3b2d35828b0ade834ddfab6a8e84a64b2745dc1f /desktop/source/pkgchk
parent74b33394c45889b640a852ad156e31a5ba60e45b (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ib06c8ed707bdfd87b294b2597614249fac2c1f18 Reviewed-on: https://gerrit.libreoffice.org/56342 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'desktop/source/pkgchk')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index 70c8ac5249ee..4a68a61aa52d 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -353,16 +353,13 @@ Reference<XComponentContext> connectToOffice(
Reference<XComponentContext> const & xLocalComponentContext,
bool verbose )
{
- Sequence<OUString> args( 3 );
- args[ 0 ] = "--nologo";
- args[ 1 ] = "--nodefault";
-
OUString pipeId( ::dp_misc::generateRandomPipeId() );
OUStringBuffer buf;
buf.append( "--accept=pipe,name=" );
buf.append( pipeId );
buf.append( ";urp;" );
- args[ 2 ] = buf.makeStringAndClear();
+
+ Sequence<OUString> args { "--nologo", "--nodefault", buf.makeStringAndClear() };
OUString appURL( getExecutableDir() + "/soffice" );
if (verbose)