summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 13:18:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 14:56:22 +0000
commit31ed7bc8c248a26c8578538495fdd53aacc0f8da (patch)
treefa989bc272333258ddadfcfe3963b21c7339203e
parent9a34c555293d27a392581acc34c06df4559930fc (diff)
coverity#737240 Uncaught exception
Change-Id: I9cff764c2ca451752f2343cedd26530bd9a0e9a7
-rw-r--r--framework/inc/xml/imagesdocumenthandler.hxx5
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx4
2 files changed, 6 insertions, 3 deletions
diff --git a/framework/inc/xml/imagesdocumenthandler.hxx b/framework/inc/xml/imagesdocumenthandler.hxx
index f0db6ec88d23..6565be5cc190 100644
--- a/framework/inc/xml/imagesdocumenthandler.hxx
+++ b/framework/inc/xml/imagesdocumenthandler.hxx
@@ -81,8 +81,9 @@ class OReadImagesDocumentHandler : private ThreadHelpBase, // Struct for right
virtual void SAL_CALL startElement(
const OUString& aName,
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &xAttribs)
- throw( ::com::sun::star::xml::sax::SAXException,
- ::com::sun::star::uno::RuntimeException );
+ throw (::com::sun::star::xml::sax::SAXException,
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL endElement(const OUString& aName)
throw (::com::sun::star::xml::sax::SAXException,
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx
index 4db5553492c9..aab1e819c665 100644
--- a/framework/source/xml/imagesdocumenthandler.cxx
+++ b/framework/source/xml/imagesdocumenthandler.cxx
@@ -165,7 +165,9 @@ throw( SAXException, RuntimeException )
void SAL_CALL OReadImagesDocumentHandler::startElement(
const OUString& aName, const Reference< XAttributeList > &xAttribs )
-throw( SAXException, RuntimeException )
+ throw(SAXException,
+ RuntimeException,
+ std::exception)
{
ResetableGuard aGuard( m_aLock );