summaryrefslogtreecommitdiffstats
path: root/unoxml
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-08 10:44:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-08 12:18:54 +0100
commitf193c1bdf17dba6d1c35b0d4d1456634a47d3974 (patch)
tree7f9986abfef9dbbfee42e3e6f2a1c9fc59776006 /unoxml
parentcoverity#708288 Uninitialized scalar field (diff)
downloadcore-f193c1bdf17dba6d1c35b0d4d1456634a47d3974.tar.gz
core-f193c1bdf17dba6d1c35b0d4d1456634a47d3974.zip
coverity#707456 Uncaught exception
also coverity#707455, coverity#707454, coverity#707453 Change-Id: Ife1c2959eeee00cf83762eccc559ed001f64b5c1
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/attributesmap.cxx8
-rw-r--r--unoxml/source/dom/attributesmap.hxx8
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;
};
}