summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-21 14:35:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-21 15:30:26 +0000
commit09f9a79b112aae36d54520568962d84a931f6491 (patch)
tree1daf69707fdaa18f6c8167e14c488583bde4d7e7 /sax
parentc1587b74c15d35fd85069d3a0f1ebe4770549021 (diff)
[API CHANGE] fix endCDATA to allow throwing css::xml::sax::SAXException
coverity#1158397 Uncaught exception Change-Id: Iabf0b1f0500cb4218d8cb3aff372777471e8f287
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/saxwriter.cxx4
-rw-r--r--sax/test/saxdemo.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index c4338590a0e4..d871cce05224 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -939,7 +939,7 @@ public: // XDocumentHandler
public: // XExtendedDocumentHandler
virtual void SAL_CALL startCDATA(void) throw(SAXException, RuntimeException);
- virtual void SAL_CALL endCDATA(void) throw(RuntimeException);
+ virtual void SAL_CALL endCDATA(void) throw(SAXException,RuntimeException);
virtual void SAL_CALL comment(const OUString& sComment)
throw(SAXException, RuntimeException);
virtual void SAL_CALL unknown(const OUString& sString)
@@ -1283,7 +1283,7 @@ void SAXWriter::startCDATA(void) throw(SAXException, RuntimeException)
m_bIsCDATA = sal_True;
}
-void SAXWriter::endCDATA(void) throw (RuntimeException)
+void SAXWriter::endCDATA(void) throw (SAXException,RuntimeException)
{
if( ! m_bDocStarted || ! m_bIsCDATA)
{
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 3910bbf56dea..4d7be76653a7 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -225,7 +225,7 @@ public: // ExtendedDocumentHandler
virtual void SAL_CALL startCDATA(void) throw (SAXException,RuntimeException)
{
}
- virtual void SAL_CALL endCDATA(void) throw (RuntimeException)
+ virtual void SAL_CALL endCDATA(void) throw (SAXException,RuntimeException)
{
}
virtual void SAL_CALL comment(const OUString& /* sComment */) throw (SAXException,RuntimeException)