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 --- chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx | 4 ++-- chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx | 4 ++-- chart2/source/controller/main/ElementSelector.cxx | 4 ++-- chart2/source/controller/main/ElementSelector.hxx | 4 ++-- chart2/source/inc/FormattedStringHelper.hxx | 2 +- chart2/source/model/main/UndoManager.cxx | 4 ++-- chart2/source/model/main/UndoManager.hxx | 4 ++-- chart2/source/tools/FormattedStringHelper.cxx | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx index 1b8c50d385f1..0b2a87cd67c0 100644 --- a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx +++ b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx @@ -71,11 +71,11 @@ uno::Any SAL_CALL CreationWizardUnoDlg::queryInterface( const uno::Type& aType ) { return OComponentHelper::queryInterface( aType ); } -void SAL_CALL CreationWizardUnoDlg::acquire() throw () +void SAL_CALL CreationWizardUnoDlg::acquire() noexcept { OComponentHelper::acquire(); } -void SAL_CALL CreationWizardUnoDlg::release() throw () +void SAL_CALL CreationWizardUnoDlg::release() noexcept { OComponentHelper::release(); } diff --git a/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx b/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx index 645d4bbec094..b58b918c249d 100644 --- a/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx +++ b/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx @@ -57,8 +57,8 @@ public: // XInterface virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override; virtual css::uno::Any SAL_CALL queryAggregation( css::uno::Type const & 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/chart2/source/controller/main/ElementSelector.cxx b/chart2/source/controller/main/ElementSelector.cxx index aea893a66ffa..8e448fa355fe 100644 --- a/chart2/source/controller/main/ElementSelector.cxx +++ b/chart2/source/controller/main/ElementSelector.cxx @@ -274,11 +274,11 @@ Any SAL_CALL ElementSelectorToolbarController::queryInterface( const Type& _rTyp aReturn = ElementSelectorToolbarController_BASE::queryInterface(_rType); return aReturn; } -void SAL_CALL ElementSelectorToolbarController::acquire() throw () +void SAL_CALL ElementSelectorToolbarController::acquire() noexcept { ToolboxController::acquire(); } -void SAL_CALL ElementSelectorToolbarController::release() throw () +void SAL_CALL ElementSelectorToolbarController::release() noexcept { ToolboxController::release(); } diff --git a/chart2/source/controller/main/ElementSelector.hxx b/chart2/source/controller/main/ElementSelector.hxx index 83e605819f41..67305fcf8266 100644 --- a/chart2/source/controller/main/ElementSelector.hxx +++ b/chart2/source/controller/main/ElementSelector.hxx @@ -82,8 +82,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; // XStatusListener virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override; diff --git a/chart2/source/inc/FormattedStringHelper.hxx b/chart2/source/inc/FormattedStringHelper.hxx index be2011b677e1..45ce0b30142e 100644 --- a/chart2/source/inc/FormattedStringHelper.hxx +++ b/chart2/source/inc/FormattedStringHelper.hxx @@ -36,7 +36,7 @@ public: createFormattedStringSequence( const css::uno::Reference< css::uno::XComponentContext > & xContext , const OUString & rString - , const css::uno::Reference< css::beans::XPropertySet > & xTextProperties ) throw(); + , const css::uno::Reference< css::beans::XPropertySet > & xTextProperties ) noexcept; }; } //namespace chart diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx index f295bc288eb2..1201d9875bbf 100644 --- a/chart2/source/model/main/UndoManager.cxx +++ b/chart2/source/model/main/UndoManager.cxx @@ -182,12 +182,12 @@ namespace chart { } - void SAL_CALL UndoManager::acquire() throw () + void SAL_CALL UndoManager::acquire() noexcept { m_pImpl->getParent().acquire(); } - void SAL_CALL UndoManager::release() throw () + void SAL_CALL UndoManager::release() noexcept { m_pImpl->getParent().release(); } diff --git a/chart2/source/model/main/UndoManager.hxx b/chart2/source/model/main/UndoManager.hxx index f9343d67bc6c..4d0a214e5a70 100644 --- a/chart2/source/model/main/UndoManager.hxx +++ b/chart2/source/model/main/UndoManager.hxx @@ -44,8 +44,8 @@ namespace chart virtual ~UndoManager(); // XInterface - 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; // XComponent equivalents void disposing(); diff --git a/chart2/source/tools/FormattedStringHelper.cxx b/chart2/source/tools/FormattedStringHelper.cxx index ff885494d231..755dd532b042 100644 --- a/chart2/source/tools/FormattedStringHelper.cxx +++ b/chart2/source/tools/FormattedStringHelper.cxx @@ -34,7 +34,7 @@ Sequence< Reference< chart2::XFormattedString2 > > FormattedStringHelper::createFormattedStringSequence( const Reference< uno::XComponentContext > & xContext , const OUString & rString - , const Reference< beans::XPropertySet > & xTextProperties ) throw() + , const Reference< beans::XPropertySet > & xTextProperties ) noexcept { Reference< XFormattedString2 > xFormStr; try -- cgit