diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 10:44:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 12:18:54 +0100 |
commit | f193c1bdf17dba6d1c35b0d4d1456634a47d3974 (patch) | |
tree | 7f9986abfef9dbbfee42e3e6f2a1c9fc59776006 /unoxml/source/dom | |
parent | 7077fa3b0d83023ca06f13707695dd89df0ab0dd (diff) |
coverity#707456 Uncaught exception
also coverity#707455, coverity#707454, coverity#707453
Change-Id: Ife1c2959eeee00cf83762eccc559ed001f64b5c1
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r-- | unoxml/source/dom/attributesmap.cxx | 8 | ||||
-rw-r--r-- | unoxml/source/dom/attributesmap.hxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx index 4514225ad499..9652bc60c2ae 100644 --- a/unoxml/source/dom/attributesmap.cxx +++ b/unoxml/source/dom/attributesmap.cxx @@ -157,7 +157,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CAttributesMap::removeNamedItem(OUString const& name) - throw (RuntimeException, std::exception) + throw (DOMException, RuntimeException, std::exception) { // no MutexGuard needed: m_pElement is const Reference< XAttr > const xAttr(m_pElement->getAttributeNode(name)); @@ -178,7 +178,7 @@ namespace DOM Reference< XNode > SAL_CALL CAttributesMap::removeNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException, std::exception) + throw (DOMException, RuntimeException, std::exception) { // no MutexGuard needed: m_pElement is const Reference< XAttr > const xAttr( @@ -199,7 +199,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CAttributesMap::setNamedItem(Reference< XNode > const& xNode) - throw (RuntimeException, std::exception) + throw (DOMException, RuntimeException, std::exception) { Reference< XAttr > const xAttr(xNode, UNO_QUERY); if (!xNode.is()) { @@ -219,7 +219,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CAttributesMap::setNamedItemNS(Reference< XNode > const& xNode) - throw (RuntimeException, std::exception) + throw (DOMException, RuntimeException, std::exception) { Reference< XAttr > const xAttr(xNode, UNO_QUERY); if (!xNode.is()) { diff --git a/unoxml/source/dom/attributesmap.hxx b/unoxml/source/dom/attributesmap.hxx index 54537e940297..94449df979e3 100644 --- a/unoxml/source/dom/attributesmap.hxx +++ b/unoxml/source/dom/attributesmap.hxx @@ -77,28 +77,28 @@ namespace DOM */ virtual Reference< XNode > SAL_CALL removeNamedItem(OUString const& name) - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (DOMException, RuntimeException, std::exception) SAL_OVERRIDE; /** // Removes a node specified by local name and namespace URI. */ virtual Reference< XNode > SAL_CALL removeNamedItemNS( OUString const& namespaceURI, OUString const& localName) - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (DOMException, RuntimeException, std::exception) SAL_OVERRIDE; /** // Adds a node using its nodeName attribute. */ virtual Reference< XNode > SAL_CALL setNamedItem(Reference< XNode > const& arg) - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (DOMException, RuntimeException, std::exception) SAL_OVERRIDE; /** Adds a node using its namespaceURI and localName. */ virtual Reference< XNode > SAL_CALL setNamedItemNS(Reference< XNode > const& arg) - throw (RuntimeException, std::exception) SAL_OVERRIDE; + throw (DOMException, RuntimeException, std::exception) SAL_OVERRIDE; }; } |