diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 14:52:29 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 16:03:10 +0200 |
commit | 57796f2724f004679f78eb144a93b9a03968317c (patch) | |
tree | 7cbf29016260069d25e0c362711c4f6e6e7e083f /writerperfect | |
parent | 92889bc98f4e822715874cb80346d8370e9da8e6 (diff) |
Simplify Sequences initializations (writerfilter/writerperfect/x*)
Change-Id: I1bd31fe6cf0f8aaf4f2cfe1d3d49e61a0633f361
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117057
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index 9f7ea9caecf1..22d7dc8d3950 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -776,14 +776,11 @@ bool WPXSvInputStreamImpl::isZip() try { - Sequence<Any> aArgs(1); - aArgs[0] <<= mxStream; - const Reference<XComponentContext> xContext(comphelper::getProcessComponentContext(), UNO_SET_THROW); const Reference<packages::zip::XZipFileAccess2> xZip( xContext->getServiceManager()->createInstanceWithArgumentsAndContext( - "com.sun.star.packages.zip.ZipFileAccess", aArgs, xContext), + "com.sun.star.packages.zip.ZipFileAccess", { Any(mxStream) }, xContext), UNO_QUERY_THROW); mpZipStorage.reset(new ZipStorageImpl(xZip)); } |