summaryrefslogtreecommitdiff
path: root/stoc
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 /stoc
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 'stoc')
-rw-r--r--stoc/source/corereflection/base.hxx8
-rw-r--r--stoc/source/corereflection/crarray.cxx4
-rw-r--r--stoc/source/corereflection/crcomp.cxx8
-rw-r--r--stoc/source/corereflection/crefl.cxx4
-rw-r--r--stoc/source/corereflection/crenum.cxx8
-rw-r--r--stoc/source/corereflection/criface.cxx16
-rw-r--r--stoc/source/inspect/introspection.cxx4
-rw-r--r--stoc/source/invocation/invocation.cxx4
-rw-r--r--stoc/source/javavm/javavm.cxx2
-rw-r--r--stoc/source/javavm/jvmargs.cxx2
-rw-r--r--stoc/source/javavm/jvmargs.hxx2
11 files changed, 31 insertions, 31 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx
index 02742fdb660e..e322f87aa62e 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -104,8 +104,8 @@ public:
// XInterface
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- 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;
// some XComponent part from OComponentHelper
virtual void SAL_CALL dispose() override;
@@ -271,8 +271,8 @@ public:
{}
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- 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;
// XTypeProvider
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
diff --git a/stoc/source/corereflection/crarray.cxx b/stoc/source/corereflection/crarray.cxx
index ad3a4663fc3a..8a402c489899 100644
--- a/stoc/source/corereflection/crarray.cxx
+++ b/stoc/source/corereflection/crarray.cxx
@@ -39,12 +39,12 @@ Any ArrayIdlClassImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : IdlClassImpl::queryInterface( rType ));
}
-void ArrayIdlClassImpl::acquire() throw()
+void ArrayIdlClassImpl::acquire() noexcept
{
IdlClassImpl::acquire();
}
-void ArrayIdlClassImpl::release() throw()
+void ArrayIdlClassImpl::release() noexcept
{
IdlClassImpl::release();
}
diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx
index da4ad43b83e6..ae15991ad017 100644
--- a/stoc/source/corereflection/crcomp.cxx
+++ b/stoc/source/corereflection/crcomp.cxx
@@ -52,8 +52,8 @@ public:
// XInterface
virtual Any SAL_CALL queryInterface( const Type & rType ) override;
- 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;
// XTypeProvider
virtual Sequence< Type > SAL_CALL getTypes() override;
@@ -83,12 +83,12 @@ Any IdlCompFieldImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-void IdlCompFieldImpl::acquire() throw()
+void IdlCompFieldImpl::acquire() noexcept
{
IdlMemberImpl::acquire();
}
-void IdlCompFieldImpl::release() throw()
+void IdlCompFieldImpl::release() noexcept
{
IdlMemberImpl::release();
}
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index e19869e5d9df..1f53572ff0c6 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -68,12 +68,12 @@ Any IdlReflectionServiceImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : OComponentHelper::queryInterface( rType ));
}
-void IdlReflectionServiceImpl::acquire() throw()
+void IdlReflectionServiceImpl::acquire() noexcept
{
OComponentHelper::acquire();
}
-void IdlReflectionServiceImpl::release() throw()
+void IdlReflectionServiceImpl::release() noexcept
{
OComponentHelper::release();
}
diff --git a/stoc/source/corereflection/crenum.cxx b/stoc/source/corereflection/crenum.cxx
index a225a2b63f25..ea441fc975fd 100644
--- a/stoc/source/corereflection/crenum.cxx
+++ b/stoc/source/corereflection/crenum.cxx
@@ -49,8 +49,8 @@ public:
// XInterface
virtual Any SAL_CALL queryInterface( const Type & rType ) override;
- 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;
// XTypeProvider
virtual Sequence< Type > SAL_CALL getTypes() override;
@@ -80,12 +80,12 @@ Any IdlEnumFieldImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-void IdlEnumFieldImpl::acquire() throw()
+void IdlEnumFieldImpl::acquire() noexcept
{
IdlMemberImpl::acquire();
}
-void IdlEnumFieldImpl::release() throw()
+void IdlEnumFieldImpl::release() noexcept
{
IdlMemberImpl::release();
}
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx
index f958994d7b1d..07aca5fdb438 100644
--- a/stoc/source/corereflection/criface.cxx
+++ b/stoc/source/corereflection/criface.cxx
@@ -73,8 +73,8 @@ public:
// XInterface
virtual Any SAL_CALL queryInterface( const Type & rType ) override;
- 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;
// XTypeProvider
virtual Sequence< Type > SAL_CALL getTypes() override;
@@ -108,12 +108,12 @@ Any IdlAttributeFieldImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-void IdlAttributeFieldImpl::acquire() throw()
+void IdlAttributeFieldImpl::acquire() noexcept
{
IdlMemberImpl::acquire();
}
-void IdlAttributeFieldImpl::release() throw()
+void IdlAttributeFieldImpl::release() noexcept
{
IdlMemberImpl::release();
}
@@ -337,8 +337,8 @@ public:
// XInterface
virtual Any SAL_CALL queryInterface( const Type & rType ) override;
- 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;
// XTypeProvider
virtual Sequence< Type > SAL_CALL getTypes() override;
@@ -366,12 +366,12 @@ Any IdlInterfaceMethodImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-void IdlInterfaceMethodImpl::acquire() throw()
+void IdlInterfaceMethodImpl::acquire() noexcept
{
IdlMemberImpl::acquire();
}
-void IdlInterfaceMethodImpl::release() throw()
+void IdlInterfaceMethodImpl::release() noexcept
{
IdlMemberImpl::release();
}
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx
index c7c0fd638175..7c5fc0f224dd 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -710,8 +710,8 @@ public:
// Methods from XInterface
virtual Any SAL_CALL queryInterface( const Type& rType ) override;
- virtual void SAL_CALL acquire() throw() override { OWeakObject::acquire(); }
- virtual void SAL_CALL release() throw() override { OWeakObject::release(); }
+ virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
+ virtual void SAL_CALL release() noexcept override { OWeakObject::release(); }
// Methods from XPropertySet
virtual Reference<XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index bffd68ab99de..4874c20750ce 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -86,8 +86,8 @@ public:
// XInterface
virtual Any SAL_CALL queryInterface( const Type & aType) override;
- virtual void SAL_CALL acquire() throw() override { OWeakObject::acquire(); }
- virtual void SAL_CALL release() throw() override { OWeakObject::release(); }
+ virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); }
+ virtual void SAL_CALL release() noexcept override { OWeakObject::release(); }
// XTypeProvider
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 35fc0cb9c7d9..a2ed761ef35a 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -383,7 +383,7 @@ void getJavaPropsFromSafetySettings(
xConfRegistry_simple->close();
}
-void setTimeZone(stoc_javavm::JVM * pjvm) throw() {
+void setTimeZone(stoc_javavm::JVM * pjvm) noexcept {
/* A Bug in the Java function
** struct Hjava_util_Properties * java_lang_System_initProperties(
** struct Hjava_lang_System *this,
diff --git a/stoc/source/javavm/jvmargs.cxx b/stoc/source/javavm/jvmargs.cxx
index a7110841565b..f98f22ec0cd1 100644
--- a/stoc/source/javavm/jvmargs.cxx
+++ b/stoc/source/javavm/jvmargs.cxx
@@ -22,7 +22,7 @@
namespace stoc_javavm
{
-JVM::JVM() throw() //: _enabled(sal_False)
+JVM::JVM() noexcept //: _enabled(sal_False)
{
}
diff --git a/stoc/source/javavm/jvmargs.hxx b/stoc/source/javavm/jvmargs.hxx
index 8def483f4f74..adc41ffa158b 100644
--- a/stoc/source/javavm/jvmargs.hxx
+++ b/stoc/source/javavm/jvmargs.hxx
@@ -46,7 +46,7 @@ namespace stoc_javavm {
::std::vector<OUString> _props;
public:
- JVM() throw();
+ JVM() noexcept;
void pushProp(const OUString & uString);
const ::std::vector< OUString> & getProperties() const { return _props;}