diff options
Diffstat (limited to 'unotools/source/misc/ZipPackageHelper.cxx')
-rw-r--r-- | unotools/source/misc/ZipPackageHelper.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/unotools/source/misc/ZipPackageHelper.cxx b/unotools/source/misc/ZipPackageHelper.cxx index 75b8ead41189..b7a6d1883373 100644 --- a/unotools/source/misc/ZipPackageHelper.cxx +++ b/unotools/source/misc/ZipPackageHelper.cxx @@ -58,14 +58,11 @@ ZipPackageHelper::ZipPackageHelper( : mxContext( rxContext ) { // create the package zip file - Sequence< Any > aArguments( 2 ); - aArguments[ 0 ] <<= sPackageURL; - - // let ZipPackage be used - beans::NamedValue aArg; - aArg.Name = "StorageFormat"; - aArg.Value <<= OUString(ZIP_STORAGE_FORMAT_STRING); - aArguments[ 1 ] <<= aArg; + Sequence< Any > aArguments{ + Any(sPackageURL), + // let ZipPackage be used + Any(beans::NamedValue("StorageFormat", Any(OUString(ZIP_STORAGE_FORMAT_STRING)))) + }; Reference< XHierarchicalNameAccess > xHNameAccess( mxContext->getServiceManager()->createInstanceWithArgumentsAndContext( |