From a2905c387d8337bb343031471c9c03d8325aff1c Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Wed, 21 Nov 2001 22:22:34 +0000
Subject: #94923# be careful about rethrowing derived exceptions
---
sax/source/expatwrap/sax_expat.cxx | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
(limited to 'sax')
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index 2f1555008fd6..7f5d3c32db88 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sax_expat.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: dbo $ $Date: 2001-10-11 14:14:30 $
+ * last change: $Author: hr $ $Date: 2001-11-21 23:22:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -478,18 +478,17 @@ void SaxExpatParser::parseStream( const InputSource& structSource)
m_pImpl->rDocumentHandler->endDocument();
}
}
-
-// catch( SAXParseException & )
-// {
-// m_pImpl->popEntity();
-// XML_ParserFree( entity.pParser );
-// throw;
-// }
+ catch( SAXParseException & )
+ {
+ m_pImpl->popEntity();
+ XML_ParserFree( entity.pParser );
+ throw SAXException();
+ }
catch( SAXException & )
{
m_pImpl->popEntity();
XML_ParserFree( entity.pParser );
- throw;
+ throw;
}
catch( IOException & )
{
--
cgit