diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-09-07 11:02:26 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-09-07 13:16:04 +0200 |
commit | edd0e3ac9f9728ff88d63113d64911cee1e29a06 (patch) | |
tree | 097ddc38bdc6f09b4e80b0190a5cebfb373b7b1d /package/source | |
parent | fade348ab2e8caddaa0248f686aa952fde1b5bdb (diff) |
Simplify a bit
Change-Id: I8756f02ca9cb641528d621704cbed09d964c6ef9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172959
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index d8d71b1ffe8f..04c853e6ae32 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -305,10 +305,8 @@ uno::Reference< io::XInputStream > ZipPackageStream::TryToGetRawFromDataStream( } // insert a new stream in the package - uno::Reference< XInterface > xTmp; Any aRoot = pPackage->getByHierarchicalName(u"/"_ustr); - aRoot >>= xTmp; - uno::Reference< container::XNameContainer > xRootNameContainer( xTmp, UNO_QUERY_THROW ); + auto xRootNameContainer = aRoot.queryThrow<container::XNameContainer>(); uno::Reference< XInterface > xNPSDummy( xNewPackStream, UNO_QUERY ); xRootNameContainer->insertByName(u"dummy"_ustr, Any( xNPSDummy ) ); @@ -337,7 +335,6 @@ uno::Reference< io::XInputStream > ZipPackageStream::TryToGetRawFromDataStream( xNewPSProps.clear(); xNPSDummy.clear(); xNewPackStream.clear(); - xTmp.clear(); xRootNameContainer.clear(); // return the stream representing the first temporary file |