summaryrefslogtreecommitdiff
path: root/package/source/zippackage
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-09-07 11:13:49 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2024-09-07 13:16:10 +0200
commitc16cbc8aac87bc7d7a98d6b667f5b8d4c440c8dd (patch)
treeeb31b9f45becea76fbd37756bc21b56d7f485001 /package/source/zippackage
parentedd0e3ac9f9728ff88d63113d64911cee1e29a06 (diff)
Simplify a bit
Change-Id: Iec00d4a2499c92f853a7942ed0659973663819eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172961 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'package/source/zippackage')
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index 04c853e6ae32..0779827f13b0 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -308,8 +308,7 @@ uno::Reference< io::XInputStream > ZipPackageStream::TryToGetRawFromDataStream(
Any aRoot = pPackage->getByHierarchicalName(u"/"_ustr);
auto xRootNameContainer = aRoot.queryThrow<container::XNameContainer>();
- uno::Reference< XInterface > xNPSDummy( xNewPackStream, UNO_QUERY );
- xRootNameContainer->insertByName(u"dummy"_ustr, Any( xNPSDummy ) );
+ xRootNameContainer->insertByName(u"dummy"_ustr, Any( xNewPackStream ) );
// commit the temporary package
pPackage->commitChanges();
@@ -333,7 +332,6 @@ uno::Reference< io::XInputStream > ZipPackageStream::TryToGetRawFromDataStream(
// close raw stream, package stream and folder
xInRaw.clear();
xNewPSProps.clear();
- xNPSDummy.clear();
xNewPackStream.clear();
xRootNameContainer.clear();