diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-10 11:04:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-10 13:13:43 +0100 |
commit | 059c1aba91962262b971267819b52e6f822bd9a0 (patch) | |
tree | 94c4bf1a81b14ea999d3be6fbbcb02a62808e1ce /embeddedobj/source | |
parent | b4c56c0fd917623bbc0982eb53276e6ca64e7f42 (diff) |
small cleanups to TempFile related code
unnecessary temporary variables
Change-Id: Iefa6c9a6627311495e6cd2f01f5446082ae0589d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128208
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'embeddedobj/source')
-rw-r--r-- | embeddedobj/source/msole/olepersist.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index c739e0355f67..46508dbceb1d 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -164,10 +164,9 @@ static OUString GetNewFilledTempFile_Impl( const uno::Reference< embed::XOptimiz { uno::Reference < io::XTempFile > xTempFile( io::TempFile::create(xContext), - uno::UNO_QUERY ); - uno::Reference < io::XStream > xTempStream = xTempFile; + uno::UNO_SET_THROW ); - xParentStorage->copyStreamElementData( aEntryName, xTempStream ); + xParentStorage->copyStreamElementData( aEntryName, xTempFile ); xTempFile->setRemoveFile( false ); aResult = xTempFile->getUri(); |