From e7e278ae177df3c58c91c54b070a319b234202b3 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Tue, 7 Dec 2004 10:00:54 +0000 Subject: INTEGRATION: CWS sb27 (1.94.22); FILE MERGED 2004/12/03 15:19:31 sb 1.94.22.1: #i38298# Use XJob.execute as a hack replacement for the expensive, recent implementation of fileaccess::XStream_impl::flush. --- package/source/zippackage/ZipPackage.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'package') diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 22ff31ab8cb9..f9f16fa3ba92 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackage.cxx,v $ * - * $Revision: 1.94 $ + * $Revision: 1.95 $ * - * last change: $Author: kz $ $Date: 2004-10-04 21:09:39 $ + * last change: $Author: rt $ $Date: 2004-12-07 11:00:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -181,6 +181,7 @@ #ifndef _OSL_FILE_HXX_ #include #endif +#include "com/sun/star/task/XJob.hpp" //HACK see #i38298# #include #include @@ -1215,6 +1216,13 @@ void SAL_CALL ZipPackage::commitChanges( ) // then copy the contents of the tempfile to our output stream copyInputToOutput_Impl( xContentStream, xOutputStream ); xOutputStream->flush(); + //HACK see #i38298#: + uno::Reference< task::XJob > asyncOutStreamErrors( + xOutputStream, uno::UNO_QUERY); + if (asyncOutStreamErrors.is()) { + asyncOutStreamErrors->execute( + uno::Sequence< beans::NamedValue >()); + } } catch( uno::Exception& ) { -- cgit v1.2.3