diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-04-30 08:20:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-02 17:02:28 +0200 |
commit | 10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch) | |
tree | 7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /svl | |
parent | a9243e626193ab4efe3a618413886773336a38e6 (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 'svl')
-rw-r--r-- | svl/source/fsstor/fsstorage.cxx | 4 | ||||
-rw-r--r-- | svl/source/fsstor/fsstorage.hxx | 4 | ||||
-rw-r--r-- | svl/source/fsstor/oinputstreamcontainer.cxx | 4 | ||||
-rw-r--r-- | svl/source/fsstor/oinputstreamcontainer.hxx | 4 | ||||
-rw-r--r-- | svl/source/fsstor/ostreamcontainer.cxx | 4 | ||||
-rw-r--r-- | svl/source/fsstor/ostreamcontainer.hxx | 4 | ||||
-rw-r--r-- | svl/source/items/itemprop.cxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/supservs.hxx | 4 |
8 files changed, 15 insertions, 15 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index 65af28e13d71..5f4d5e2541bf 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -212,12 +212,12 @@ uno::Any SAL_CALL FSStorage::queryInterface( const uno::Type& rType ) return OWeakObject::queryInterface( rType ); } -void SAL_CALL FSStorage::acquire() throw() +void SAL_CALL FSStorage::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL FSStorage::release() throw() +void SAL_CALL FSStorage::release() noexcept { OWeakObject::release(); } diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx index d7d6d571a620..800d7d577489 100644 --- a/svl/source/fsstor/fsstorage.hxx +++ b/svl/source/fsstor/fsstorage.hxx @@ -68,9 +68,9 @@ 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 acquire() noexcept override; - virtual void SAL_CALL release() throw() override; + virtual void SAL_CALL release() noexcept override; // XTypeProvider diff --git a/svl/source/fsstor/oinputstreamcontainer.cxx b/svl/source/fsstor/oinputstreamcontainer.cxx index b62aca14c9b2..bb2ec91f8542 100644 --- a/svl/source/fsstor/oinputstreamcontainer.cxx +++ b/svl/source/fsstor/oinputstreamcontainer.cxx @@ -79,13 +79,13 @@ uno::Any SAL_CALL OFSInputStreamContainer::queryInterface( const uno::Type& rTyp } void SAL_CALL OFSInputStreamContainer::acquire() - throw() + noexcept { ::cppu::OWeakObject::acquire(); } void SAL_CALL OFSInputStreamContainer::release() - throw() + noexcept { ::cppu::OWeakObject::release(); } diff --git a/svl/source/fsstor/oinputstreamcontainer.hxx b/svl/source/fsstor/oinputstreamcontainer.hxx index 9d9a17a79302..a3bd9bcc1fb6 100644 --- a/svl/source/fsstor/oinputstreamcontainer.hxx +++ b/svl/source/fsstor/oinputstreamcontainer.hxx @@ -53,8 +53,8 @@ public: virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; 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; // XInputStream virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) override; diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx index ef74bacbe7b0..e5ec14fd9388 100644 --- a/svl/source/fsstor/ostreamcontainer.cxx +++ b/svl/source/fsstor/ostreamcontainer.cxx @@ -121,13 +121,13 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType ) } void SAL_CALL OFSStreamContainer::acquire() - throw() + noexcept { OWeakObject::acquire(); } void SAL_CALL OFSStreamContainer::release() - throw() + noexcept { OWeakObject::release(); } diff --git a/svl/source/fsstor/ostreamcontainer.hxx b/svl/source/fsstor/ostreamcontainer.hxx index 543a2049c306..fa461e955a7d 100644 --- a/svl/source/fsstor/ostreamcontainer.hxx +++ b/svl/source/fsstor/ostreamcontainer.hxx @@ -64,8 +64,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; // XTypeProvider virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index f5418dbe169b..1c4f2ffb8465 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -197,7 +197,7 @@ void SfxItemPropertySet::setPropertyValue( const OUString &rName, } PropertyState SfxItemPropertySet::getPropertyState(const SfxItemPropertyMapEntry& rEntry, const SfxItemSet& rSet) const - throw() + noexcept { PropertyState eRet = PropertyState_DIRECT_VALUE; sal_uInt16 nWhich = rEntry.nWID; diff --git a/svl/source/numbers/supservs.hxx b/svl/source/numbers/supservs.hxx index 64ed4b3fe943..7ab580650fe7 100644 --- a/svl/source/numbers/supservs.hxx +++ b/svl/source/numbers/supservs.hxx @@ -48,8 +48,8 @@ public: virtual ~SvNumberFormatsSupplierServiceObject() override; // XInterface - virtual void SAL_CALL acquire() throw() override { SvNumberFormatsSupplierObj::acquire(); } - virtual void SAL_CALL release() throw() override { SvNumberFormatsSupplierObj::release(); } + virtual void SAL_CALL acquire() noexcept override { SvNumberFormatsSupplierObj::acquire(); } + virtual void SAL_CALL release() noexcept override { SvNumberFormatsSupplierObj::release(); } virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& _rType ) override { return SvNumberFormatsSupplierObj::queryInterface(_rType); } |