From 10d29c390dd58ed629dd27fe5ed35fae28eceec3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 Apr 2021 08:20:03 +0200 Subject: 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 --- basctl/source/basicide/basidectrlr.cxx | 4 ++-- basctl/source/basicide/unomodel.cxx | 4 ++-- basctl/source/basicide/unomodel.hxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'basctl/source/basicide') diff --git a/basctl/source/basicide/basidectrlr.cxx b/basctl/source/basicide/basidectrlr.cxx index 88e67bc3bbc0..849bff30cbe7 100644 --- a/basctl/source/basicide/basidectrlr.cxx +++ b/basctl/source/basicide/basidectrlr.cxx @@ -61,12 +61,12 @@ Any SAL_CALL Controller::queryInterface( const Type & rType ) return aReturn; } -void SAL_CALL Controller::acquire() throw() +void SAL_CALL Controller::acquire() noexcept { SfxBaseController::acquire(); } -void SAL_CALL Controller::release() throw() +void SAL_CALL Controller::release() noexcept { SfxBaseController::release(); } diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx index f22634935fcc..4a9ee759f060 100644 --- a/basctl/source/basicide/unomodel.cxx +++ b/basctl/source/basicide/unomodel.cxx @@ -59,13 +59,13 @@ uno::Any SAL_CALL SIDEModel::queryInterface( const uno::Type& rType ) return aRet; } -void SAL_CALL SIDEModel::acquire() throw() +void SAL_CALL SIDEModel::acquire() noexcept { SolarMutexGuard aGuard; OWeakObject::acquire(); } -void SAL_CALL SIDEModel::release() throw() +void SAL_CALL SIDEModel::release() noexcept { SolarMutexGuard aGuard; OWeakObject::release(); diff --git a/basctl/source/basicide/unomodel.hxx b/basctl/source/basicide/unomodel.hxx index 23b458fd8220..b47873005699 100644 --- a/basctl/source/basicide/unomodel.hxx +++ b/basctl/source/basicide/unomodel.hxx @@ -35,8 +35,8 @@ public: //XInterface virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) 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; -- cgit