diff options
author | Noel Grandin <noelgrandin@collabora.co.uk> | 2022-10-21 13:38:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-21 20:48:43 +0200 |
commit | 09dfee8a1cf7698a637f647f48750cf8d5722b7c (patch) | |
tree | 058f04632dec1395f6434a08854f88ab95b4e682 /unotools | |
parent | a09f6099d20f8ea6fa0e0ae22aa31124a290bd72 (diff) |
tdf#133767 use more TempFileFastService
Change-Id: I58728f0b7971e3247cd555dd701461824707d15d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141627
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index ad116eff294f..7231e0b46579 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -59,6 +59,7 @@ #include <comphelper/bytereader.hxx> #include <comphelper/storagehelper.hxx> #include <ucbhelper/content.hxx> +#include <unotools/tempfile.hxx> #include <mutex> #include <utility> @@ -1017,11 +1018,11 @@ bool UcbLockBytes::setInputStream( const Reference<XInputStream> &rxInputStream, if( !m_xSeekable.is() && rxInputStream.is() ) { Reference < XComponentContext > xContext = ::comphelper::getProcessComponentContext(); - Reference< XOutputStream > rxTempOut( css::io::TempFile::create(xContext), UNO_QUERY_THROW ); + rtl::Reference< utl::TempFileFastService > rxTempOut( new utl::TempFileFastService ); ::comphelper::OStorageHelper::CopyInputToOutput( rxInputStream, rxTempOut ); - m_xInputStream.set( rxTempOut, UNO_QUERY ); - m_xSeekable.set( rxTempOut, UNO_QUERY ); + m_xInputStream.set( rxTempOut ); + m_xSeekable.set( rxTempOut ); } } |