summaryrefslogtreecommitdiff
path: root/cppu/qa
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 /cppu/qa
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 'cppu/qa')
-rw-r--r--cppu/qa/test_any.cxx12
-rw-r--r--cppu/qa/test_reference.cxx4
2 files changed, 8 insertions, 8 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx
index de640099f1dc..ebec9998d1d6 100644
--- a/cppu/qa/test_any.cxx
+++ b/cppu/qa/test_any.cxx
@@ -93,11 +93,11 @@ public:
return css::uno::Any();
}
- virtual void SAL_CALL acquire() throw () override {
+ virtual void SAL_CALL acquire() noexcept override {
Base::acquire();
}
- virtual void SAL_CALL release() throw () override {
+ virtual void SAL_CALL release() noexcept override {
Base::release();
}
};
@@ -127,11 +127,11 @@ public:
return css::uno::Any();
}
- virtual void SAL_CALL acquire() throw () override {
+ virtual void SAL_CALL acquire() noexcept override {
Base::acquire();
}
- virtual void SAL_CALL release() throw () override {
+ virtual void SAL_CALL release() noexcept override {
Base::release();
}
};
@@ -161,11 +161,11 @@ public:
return css::uno::Any();
}
- virtual void SAL_CALL acquire() throw () override {
+ virtual void SAL_CALL acquire() noexcept override {
Base::acquire();
}
- virtual void SAL_CALL release() throw () override {
+ virtual void SAL_CALL release() noexcept override {
Base::release();
}
};
diff --git a/cppu/qa/test_reference.cxx b/cppu/qa/test_reference.cxx
index 79ff90ae4101..6ffb319077ed 100644
--- a/cppu/qa/test_reference.cxx
+++ b/cppu/qa/test_reference.cxx
@@ -60,12 +60,12 @@ public:
return Any();
}
- virtual void SAL_CALL acquire() throw () override
+ virtual void SAL_CALL acquire() noexcept override
{
osl_atomic_increment( &m_refCount );
}
- virtual void SAL_CALL release() throw () override
+ virtual void SAL_CALL release() noexcept override
{
if ( 0 == osl_atomic_decrement( &m_refCount ) )
delete this;