From 5e21a413c788f839a66d9e4c14e745ed18058db8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 25 Feb 2014 21:31:58 +0100 Subject: cppuhelper: retrofit std::exception into overriding exception specs Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3 --- unoxml/source/dom/node.cxx | 58 +++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'unoxml/source/dom/node.cxx') diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index e68cd6afbf6d..ac386c3b5eb0 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -288,7 +288,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNode::appendChild( Reference< XNode > const& xNewChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::ClearableMutexGuard guard(m_rMutex); @@ -390,7 +390,7 @@ namespace DOM constructor for nodes. */ Reference< XNode > SAL_CALL CNode::cloneNode(sal_Bool bDeep) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -409,7 +409,7 @@ namespace DOM or null otherwise. */ Reference< XNamedNodeMap > SAL_CALL CNode::getAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // return empty reference; only element node may override this impl return Reference< XNamedNodeMap>(); @@ -419,7 +419,7 @@ namespace DOM A NodeList that contains all children of this node. */ Reference< XNodeList > SAL_CALL CNode::getChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -434,7 +434,7 @@ namespace DOM The first child of this node. */ Reference< XNode > SAL_CALL CNode::getFirstChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -450,7 +450,7 @@ namespace DOM The last child of this node. */ Reference< XNode > SAL_CALL CNode::getLastChild() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -466,7 +466,7 @@ namespace DOM Returns the local part of the qualified name of this node. */ OUString SAL_CALL CNode::getLocalName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // see CElement/CAttr return OUString(); @@ -477,7 +477,7 @@ namespace DOM The namespace URI of this node, or null if it is unspecified. */ OUString SAL_CALL CNode::getNamespaceURI() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -496,7 +496,7 @@ namespace DOM The node immediately following this node. */ Reference< XNode > SAL_CALL CNode::getNextSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -512,7 +512,7 @@ namespace DOM The name of this node, depending on its type; see the table above. */ OUString SAL_CALL CNode::getNodeName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { /* Interface nodeName nodeValue attributes @@ -540,7 +540,7 @@ namespace DOM A code representing the type of the underlying object, as defined above. */ NodeType SAL_CALL CNode::getNodeType() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -551,7 +551,7 @@ namespace DOM The value of this node, depending on its type; see the table above. */ OUString SAL_CALL CNode::getNodeValue() - throw (RuntimeException) + throw (RuntimeException, std::exception) { OUString aValue; return aValue; @@ -561,7 +561,7 @@ namespace DOM The Document object associated with this node. */ Reference< XDocument > SAL_CALL CNode::getOwnerDocument() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -576,7 +576,7 @@ namespace DOM The parent of this node. */ Reference< XNode > SAL_CALL CNode::getParentNode() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -592,7 +592,7 @@ namespace DOM The namespace prefix of this node, or null if it is unspecified. */ OUString SAL_CALL CNode::getPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -613,7 +613,7 @@ namespace DOM The node immediately preceding this node. */ Reference< XNode > SAL_CALL CNode::getPreviousSibling() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -629,7 +629,7 @@ namespace DOM Returns whether this node (if it is an element) has any attributes. */ sal_Bool SAL_CALL CNode::hasAttributes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -640,7 +640,7 @@ namespace DOM Returns whether this node has any children. */ sal_Bool SAL_CALL CNode::hasChildNodes() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -652,7 +652,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNode::insertBefore( const Reference< XNode >& newChild, const Reference< XNode >& refChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!newChild.is() || !refChild.is()) { throw RuntimeException(); } @@ -731,7 +731,7 @@ namespace DOM that feature is supported by this node. */ sal_Bool SAL_CALL CNode::isSupported(const OUString& /*feature*/, const OUString& /*ver*/) - throw (RuntimeException) + throw (RuntimeException, std::exception) { OSL_ENSURE(false, "CNode::isSupported: not implemented (#i113683#)"); return sal_False; @@ -745,7 +745,7 @@ namespace DOM Text nodes nor empty Text nodes. */ void SAL_CALL CNode::normalize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { //XXX combine adjacent text nodes and remove empty ones OSL_ENSURE(false, "CNode::normalize: not implemented (#i113683#)"); @@ -757,7 +757,7 @@ namespace DOM */ Reference< XNode > SAL_CALL CNode::removeChild(const Reference< XNode >& xOldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!xOldChild.is()) { throw RuntimeException(); @@ -833,7 +833,7 @@ namespace DOM Reference< XNode > SAL_CALL CNode::replaceChild( Reference< XNode > const& xNewChild, Reference< XNode > const& xOldChild) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { if (!xOldChild.is() || !xNewChild.is()) { throw RuntimeException(); @@ -950,7 +950,7 @@ namespace DOM The value of this node, depending on its type; see the table above. */ void SAL_CALL CNode::setNodeValue(const OUString& /*nodeValue*/) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { // use specific node implememntation // if we end up down here, something went wrong @@ -963,7 +963,7 @@ namespace DOM The namespace prefix of this node, or null if it is unspecified. */ void SAL_CALL CNode::setPrefix(const OUString& prefix) - throw (RuntimeException, DOMException) + throw (RuntimeException, DOMException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -989,7 +989,7 @@ namespace DOM void SAL_CALL CNode::addEventListener(const OUString& eventType, const Reference< com::sun::star::xml::dom::events::XEventListener >& listener, sal_Bool useCapture) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -1001,7 +1001,7 @@ namespace DOM void SAL_CALL CNode::removeEventListener(const OUString& eventType, const Reference< com::sun::star::xml::dom::events::XEventListener >& listener, sal_Bool useCapture) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard const g(m_rMutex); @@ -1011,7 +1011,7 @@ namespace DOM } sal_Bool SAL_CALL CNode::dispatchEvent(const Reference< XEvent >& evt) - throw(RuntimeException, EventException) + throw(RuntimeException, EventException, std::exception) { CDocument * pDocument; events::CEventDispatcher * pDispatcher; @@ -1030,7 +1030,7 @@ namespace DOM ::sal_Int64 SAL_CALL CNode::getSomething(Sequence< ::sal_Int8 > const& rId) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if ((rId.getLength() == 16) && (0 == memcmp(theCNodeUnoTunnelId::get().getSeq().getConstArray(), -- cgit