Kaydet (Commit) f193c1bd authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707456 Uncaught exception

also coverity#707455, coverity#707454, coverity#707453

Change-Id: Ife1c2959eeee00cf83762eccc559ed001f64b5c1
üst 7077fa3b
......@@ -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()) {
......
......@@ -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;
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment