summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/node.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /unoxml/source/dom/node.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoxml/source/dom/node.cxx')
-rw-r--r--unoxml/source/dom/node.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index 3617d1f45d5d..2d191b5cd997 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -285,7 +285,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL CNode::appendChild(
Reference< XNode > const& xNewChild)
- throw (RuntimeException, DOMException, std::exception)
{
::osl::ClearableMutexGuard guard(m_rMutex);
@@ -387,7 +386,6 @@ namespace DOM
constructor for nodes.
*/
Reference< XNode > SAL_CALL CNode::cloneNode(sal_Bool bDeep)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -406,7 +404,6 @@ namespace DOM
or null otherwise.
*/
Reference< XNamedNodeMap > SAL_CALL CNode::getAttributes()
- throw (RuntimeException, std::exception)
{
// return empty reference; only element node may override this impl
return Reference< XNamedNodeMap>();
@@ -416,7 +413,6 @@ namespace DOM
A NodeList that contains all children of this node.
*/
Reference< XNodeList > SAL_CALL CNode::getChildNodes()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -431,7 +427,6 @@ namespace DOM
The first child of this node.
*/
Reference< XNode > SAL_CALL CNode::getFirstChild()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -447,7 +442,6 @@ namespace DOM
The last child of this node.
*/
Reference< XNode > SAL_CALL CNode::getLastChild()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -463,7 +457,6 @@ namespace DOM
Returns the local part of the qualified name of this node.
*/
OUString SAL_CALL CNode::getLocalName()
- throw (RuntimeException, std::exception)
{
// see CElement/CAttr
return OUString();
@@ -474,7 +467,6 @@ namespace DOM
The namespace URI of this node, or null if it is unspecified.
*/
OUString SAL_CALL CNode::getNamespaceURI()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -493,7 +485,6 @@ namespace DOM
The node immediately following this node.
*/
Reference< XNode > SAL_CALL CNode::getNextSibling()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -509,7 +500,6 @@ namespace DOM
The name of this node, depending on its type; see the table above.
*/
OUString SAL_CALL CNode::getNodeName()
- throw (RuntimeException, std::exception)
{
/*
Interface nodeName nodeValue attributes
@@ -537,7 +527,6 @@ namespace DOM
A code representing the type of the underlying object, as defined above.
*/
NodeType SAL_CALL CNode::getNodeType()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -548,7 +537,6 @@ namespace DOM
The value of this node, depending on its type; see the table above.
*/
OUString SAL_CALL CNode::getNodeValue()
- throw (RuntimeException, std::exception)
{
OUString aValue;
return aValue;
@@ -558,7 +546,6 @@ namespace DOM
The Document object associated with this node.
*/
Reference< XDocument > SAL_CALL CNode::getOwnerDocument()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -573,7 +560,6 @@ namespace DOM
The parent of this node.
*/
Reference< XNode > SAL_CALL CNode::getParentNode()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -589,7 +575,6 @@ namespace DOM
The namespace prefix of this node, or null if it is unspecified.
*/
OUString SAL_CALL CNode::getPrefix()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -610,7 +595,6 @@ namespace DOM
The node immediately preceding this node.
*/
Reference< XNode > SAL_CALL CNode::getPreviousSibling()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -626,7 +610,6 @@ namespace DOM
Returns whether this node (if it is an element) has any attributes.
*/
sal_Bool SAL_CALL CNode::hasAttributes()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -637,7 +620,6 @@ namespace DOM
Returns whether this node has any children.
*/
sal_Bool SAL_CALL CNode::hasChildNodes()
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -649,7 +631,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL CNode::insertBefore(
const Reference< XNode >& newChild, const Reference< XNode >& refChild)
- throw (RuntimeException, DOMException, std::exception)
{
if (!newChild.is() || !refChild.is()) { throw RuntimeException(); }
@@ -728,7 +709,6 @@ namespace DOM
that feature is supported by this node.
*/
sal_Bool SAL_CALL CNode::isSupported(const OUString& /*feature*/, const OUString& /*ver*/)
- throw (RuntimeException, std::exception)
{
OSL_ENSURE(false, "CNode::isSupported: not implemented (#i113683#)");
return false;
@@ -742,7 +722,6 @@ namespace DOM
Text nodes nor empty Text nodes.
*/
void SAL_CALL CNode::normalize()
- throw (RuntimeException, std::exception)
{
//XXX combine adjacent text nodes and remove empty ones
OSL_ENSURE(false, "CNode::normalize: not implemented (#i113683#)");
@@ -754,7 +733,6 @@ namespace DOM
*/
Reference< XNode > SAL_CALL
CNode::removeChild(const Reference< XNode >& xOldChild)
- throw (RuntimeException, DOMException, std::exception)
{
if (!xOldChild.is()) {
throw RuntimeException();
@@ -830,7 +808,6 @@ namespace DOM
Reference< XNode > SAL_CALL CNode::replaceChild(
Reference< XNode > const& xNewChild,
Reference< XNode > const& xOldChild)
- throw (RuntimeException, DOMException, std::exception)
{
if (!xOldChild.is() || !xNewChild.is()) {
throw RuntimeException();
@@ -948,7 +925,6 @@ 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, std::exception)
{
// use specific node implementation
// if we end up down here, something went wrong
@@ -961,7 +937,6 @@ 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, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -987,7 +962,6 @@ namespace DOM
void SAL_CALL CNode::addEventListener(const OUString& eventType,
const Reference< css::xml::dom::events::XEventListener >& listener,
sal_Bool useCapture)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -999,7 +973,6 @@ namespace DOM
void SAL_CALL CNode::removeEventListener(const OUString& eventType,
const Reference< css::xml::dom::events::XEventListener >& listener,
sal_Bool useCapture)
- throw (RuntimeException, std::exception)
{
::osl::MutexGuard const g(m_rMutex);
@@ -1009,7 +982,6 @@ namespace DOM
}
sal_Bool SAL_CALL CNode::dispatchEvent(const Reference< XEvent >& evt)
- throw(RuntimeException, EventException, std::exception)
{
CDocument * pDocument;
events::CEventDispatcher * pDispatcher;
@@ -1028,7 +1000,6 @@ namespace DOM
::sal_Int64 SAL_CALL
CNode::getSomething(Sequence< ::sal_Int8 > const& rId)
- throw (RuntimeException, std::exception)
{
if ((rId.getLength() == 16) &&
(0 == memcmp(theCNodeUnoTunnelId::get().getSeq().getConstArray(),