summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx7
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 );
}
}