diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 14:56:03 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 14:56:03 +0000 |
commit | cc2b56453d9cfb0afaf8e68673914a0e47618e69 (patch) | |
tree | 0442c4f343570ad09a1ba1d5bf3b55bd116fd3d4 /package/source | |
parent | 8673fb489497b68784ee11723649cd95fae3ec3c (diff) |
INTEGRATION: CWS fwk20 (1.41.4); FILE MERGED
2005/08/03 08:38:08 mav 1.41.4.1: #i51806# close used streams in time
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index f3772fd64c89..693cd1ec7e6f 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ZipPackageStream.cxx,v $ * - * $Revision: 1.43 $ + * $Revision: 1.44 $ * - * last change: $Author: rt $ $Date: 2005-09-08 16:19:54 $ + * last change: $Author: hr $ $Date: 2005-09-23 15:56:03 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -151,6 +151,16 @@ void ZipPackageStream::setZipEntry( const ZipEntry &rInEntry) } //-------------------------------------------------------------------------- +void ZipPackageStream::CloseOwnStreamIfAny() +{ + if ( xStream.is() ) + { + xStream->closeInput(); + xStream = uno::Reference< io::XInputStream >(); + } +} + +//-------------------------------------------------------------------------- uno::Reference< io::XInputStream > ZipPackageStream::GetRawEncrStreamNoHeaderCopy() { if ( m_nStreamMode != PACKAGE_STREAM_RAW || !xStream.is() ) |