summaryrefslogtreecommitdiff
path: root/unoxml/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-30 08:20:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-05-02 17:02:28 +0200
commit10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch)
tree7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /unoxml/source
parenta9243e626193ab4efe3a618413886773336a38e6 (diff)
throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite
Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoxml/source')
-rw-r--r--unoxml/source/dom/domimplementation.cxx4
-rw-r--r--unoxml/source/dom/domimplementation.hxx4
-rw-r--r--unoxml/source/dom/node.cxx2
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx4
4 files changed, 7 insertions, 7 deletions
diff --git a/unoxml/source/dom/domimplementation.cxx b/unoxml/source/dom/domimplementation.cxx
index 40afdb3196dd..41cf2c7c053c 100644
--- a/unoxml/source/dom/domimplementation.cxx
+++ b/unoxml/source/dom/domimplementation.cxx
@@ -41,8 +41,8 @@ namespace DOM
}
// there is just 1 static instance, so these must not delete it!
- void SAL_CALL CDOMImplementation::acquire() throw () { }
- void SAL_CALL CDOMImplementation::release() throw () { }
+ void SAL_CALL CDOMImplementation::acquire() noexcept { }
+ void SAL_CALL CDOMImplementation::release() noexcept { }
/**
Creates a DOM Document object of the specified type with its document element.
diff --git a/unoxml/source/dom/domimplementation.hxx b/unoxml/source/dom/domimplementation.hxx
index e2f2509445bc..955a4e32ea56 100644
--- a/unoxml/source/dom/domimplementation.hxx
+++ b/unoxml/source/dom/domimplementation.hxx
@@ -38,8 +38,8 @@ namespace DOM
static CDOMImplementation* get();
// there is just 1 static instance, so these must not delete it!
- virtual void SAL_CALL acquire() throw () override;
- virtual void SAL_CALL release() throw () override;
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
/**
Creates a DOM Document object of the specified type with its document element.
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx
index ce6b9e7beb54..a6809cf7df47 100644
--- a/unoxml/source/dom/node.cxx
+++ b/unoxml/source/dom/node.cxx
@@ -162,7 +162,7 @@ namespace DOM
}
}
- const css::uno::Sequence< sal_Int8 > & CNode::getUnoTunnelId() throw()
+ const css::uno::Sequence< sal_Int8 > & CNode::getUnoTunnelId() noexcept
{
static const UnoTunnelIdInit theCNodeUnoTunnelId;
return theCNodeUnoTunnelId.getSeq();
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index d6b0a41e029d..6ed9e552cef6 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -96,7 +96,7 @@ const char s_nsOOo [] = "http://openoffice.org/2004/office/rdfa/";
//FIXME: this approach is not ideal. can we use blank nodes instead?
-bool isInternalContext(librdf_node *i_pNode) throw ()
+bool isInternalContext(librdf_node *i_pNode) noexcept
{
OSL_ENSURE(i_pNode, "isInternalContext: context null");
OSL_ENSURE(librdf_node_is_resource(i_pNode),
@@ -638,7 +638,7 @@ class NodeArray : private std::vector<librdf_node*>
public:
NodeArray(int cnt) : std::vector<librdf_node*>(cnt) {}
- ~NodeArray() throw ()
+ ~NodeArray() noexcept
{
std::for_each(begin(), end(), safe_librdf_free_node);
}