diff options
author | Stephan Bergmann <sb@openoffice.org> | 2001-03-05 13:48:59 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2001-03-05 13:48:59 +0000 |
commit | 2af684f686ee2e8f92c998f74e04592b03d53ddb (patch) | |
tree | 82d0df3168c75fb42d5284ae1cc539b88c3267ee /unotools/source/ucbhelper/ucblockbytes.cxx | |
parent | 07ac6fee2ed9204629db36bbf29325d44d061e0a (diff) |
#84570# Do not let the UcbLockBytes dtor throw exceptions.
Diffstat (limited to 'unotools/source/ucbhelper/ucblockbytes.cxx')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 6e20951910b1..586089a7da56 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ucblockbytes.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: mba $ $Date: 2000-12-06 12:42:23 $ + * last change: $Author: sb $ $Date: 2001-03-05 14:48:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -462,9 +462,23 @@ UcbLockBytes::~UcbLockBytes() if ( !m_bDontClose ) { if ( m_xInputStream.is() ) - m_xInputStream->closeInput(); + try + { + m_xInputStream->closeInput(); + } + catch ( RuntimeException const & ) + {} + catch ( IOException const & ) + {} if ( m_xOutputStream.is() ) - m_xOutputStream->closeOutput(); + try + { + m_xOutputStream->closeOutput(); + } + catch ( RuntimeException const & ) + {} + catch ( IOException const & ) + {} } } |