diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-12-07 10:00:54 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-12-07 10:00:54 +0000 |
commit | e7e278ae177df3c58c91c54b070a319b234202b3 (patch) | |
tree | ad142e8fadc227179aea07b6a4b4aa900a22a718 /package | |
parent | 86dd370e46e9ee8ac6134c1277f16d6f79e14fbd (diff) |
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.
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
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 <osl/file.hxx> #endif +#include "com/sun/star/task/XJob.hpp" //HACK see #i38298# #include <memory> #include <vector> @@ -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& ) { |