unotools/source/ucbhelper/ucblockbytes.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 09dfee8a1cf7698a637f647f48750cf8d5722b7c
Author:     Noel Grandin <noelgran...@collabora.co.uk>
AuthorDate: Fri Oct 21 13:38:47 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Oct 21 20:48:43 2022 +0200

    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.gran...@collabora.co.uk>

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 );
             }
         }
 

Reply via email to