From f193c1bdf17dba6d1c35b0d4d1456634a47d3974 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 8 Apr 2014 10:44:35 +0100 Subject: coverity#707456 Uncaught exception also coverity#707455, coverity#707454, coverity#707453 Change-Id: Ife1c2959eeee00cf83762eccc559ed001f64b5c1 --- unoxml/source/dom/attributesmap.cxx | 8 ++++---- unoxml/source/dom/attributesmap.hxx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'unoxml') 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; }; } -- cgit