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 /framework | |
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 'framework')
28 files changed, 52 insertions, 52 deletions
diff --git a/framework/inc/classes/actiontriggercontainer.hxx b/framework/inc/classes/actiontriggercontainer.hxx index 6297ce82c91f..785fa2511943 100644 --- a/framework/inc/classes/actiontriggercontainer.hxx +++ b/framework/inc/classes/actiontriggercontainer.hxx @@ -41,8 +41,8 @@ class ActionTriggerContainer final : public PropertySetContainer, // 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; // XMultiServiceFactory virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override; diff --git a/framework/inc/classes/actiontriggerpropertyset.hxx b/framework/inc/classes/actiontriggerpropertyset.hxx index ee4d6e902381..59c883cf8841 100644 --- a/framework/inc/classes/actiontriggerpropertyset.hxx +++ b/framework/inc/classes/actiontriggerpropertyset.hxx @@ -47,8 +47,8 @@ class ActionTriggerPropertySet final : private cppu::BaseMutex, // 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; // XServiceInfo virtual OUString SAL_CALL getImplementationName( ) override; diff --git a/framework/inc/classes/actiontriggerseparatorpropertyset.hxx b/framework/inc/classes/actiontriggerseparatorpropertyset.hxx index 6fae5595f3a8..198fa2f8393c 100644 --- a/framework/inc/classes/actiontriggerseparatorpropertyset.hxx +++ b/framework/inc/classes/actiontriggerseparatorpropertyset.hxx @@ -45,8 +45,8 @@ class ActionTriggerSeparatorPropertySet final : private cppu::BaseMutex, // 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; // XServiceInfo virtual OUString SAL_CALL getImplementationName( ) override; diff --git a/framework/inc/classes/rootactiontriggercontainer.hxx b/framework/inc/classes/rootactiontriggercontainer.hxx index 2b3088e7793d..601d7c6bcc09 100644 --- a/framework/inc/classes/rootactiontriggercontainer.hxx +++ b/framework/inc/classes/rootactiontriggercontainer.hxx @@ -45,8 +45,8 @@ class RootActionTriggerContainer final : public PropertySetContainer, // 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; // XMultiServiceFactory virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override; diff --git a/framework/inc/helper/propertysetcontainer.hxx b/framework/inc/helper/propertysetcontainer.hxx index ba1c7110d1b6..f943a112a7ac 100644 --- a/framework/inc/helper/propertysetcontainer.hxx +++ b/framework/inc/helper/propertysetcontainer.hxx @@ -39,8 +39,8 @@ class PropertySetContainer : public css::container::XIndexContainer , // 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; // XIndexContainer virtual void SAL_CALL insertByIndex( sal_Int32 Index, const css::uno::Any& Element ) override; diff --git a/framework/inc/helper/uiconfigelementwrapperbase.hxx b/framework/inc/helper/uiconfigelementwrapperbase.hxx index 3b594c876be3..a58c187c0945 100644 --- a/framework/inc/helper/uiconfigelementwrapperbase.hxx +++ b/framework/inc/helper/uiconfigelementwrapperbase.hxx @@ -59,9 +59,9 @@ class UIConfigElementWrapperBase : private cppu::BaseMutex, virtual ~UIConfigElementWrapperBase() override; // XInterface - virtual void SAL_CALL acquire() throw () override + virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); } - virtual void SAL_CALL release() throw () override + virtual void SAL_CALL release() noexcept override { OWeakObject::release(); } virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& type) override; diff --git a/framework/inc/helper/uielementwrapperbase.hxx b/framework/inc/helper/uielementwrapperbase.hxx index 664000b67fa8..71fc8d0784ae 100644 --- a/framework/inc/helper/uielementwrapperbase.hxx +++ b/framework/inc/helper/uielementwrapperbase.hxx @@ -53,9 +53,9 @@ class UIElementWrapperBase : private cppu::BaseMutex, virtual ~UIElementWrapperBase() override; // XInterface - virtual void SAL_CALL acquire() throw () override + virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); } - virtual void SAL_CALL release() throw () override + virtual void SAL_CALL release() noexcept override { OWeakObject::release(); } virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& type) override; diff --git a/framework/inc/uielement/buttontoolbarcontroller.hxx b/framework/inc/uielement/buttontoolbarcontroller.hxx index f80b0cacb511..d35b3d7f2c75 100644 --- a/framework/inc/uielement/buttontoolbarcontroller.hxx +++ b/framework/inc/uielement/buttontoolbarcontroller.hxx @@ -52,8 +52,8 @@ class ButtonToolbarController final : public css::frame::XStatusListener, // 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; // XInitialization virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; diff --git a/framework/inc/uielement/constitemcontainer.hxx b/framework/inc/uielement/constitemcontainer.hxx index 53a0711404df..e25edc57fc7a 100644 --- a/framework/inc/uielement/constitemcontainer.hxx +++ b/framework/inc/uielement/constitemcontainer.hxx @@ -52,7 +52,7 @@ class ConstItemContainer final : public ::cppu::WeakImplHelper< virtual ~ConstItemContainer() override; // XUnoTunnel - static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() throw(); + static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() noexcept; sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) override; // XIndexAccess diff --git a/framework/inc/uielement/itemcontainer.hxx b/framework/inc/uielement/itemcontainer.hxx index a53bcfa8f3c2..5d5bc9c85c41 100644 --- a/framework/inc/uielement/itemcontainer.hxx +++ b/framework/inc/uielement/itemcontainer.hxx @@ -44,7 +44,7 @@ class ItemContainer final : public ::cppu::WeakImplHelper< css::container::XInde // XInterface, XTypeProvider // XUnoTunnel - static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() throw(); + static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() noexcept; // XIndexContainer virtual void SAL_CALL insertByIndex( sal_Int32 Index, const css::uno::Any& Element ) override; diff --git a/framework/inc/uielement/menubarwrapper.hxx b/framework/inc/uielement/menubarwrapper.hxx index b2a7f6cb3297..66a5716a8f0d 100644 --- a/framework/inc/uielement/menubarwrapper.hxx +++ b/framework/inc/uielement/menubarwrapper.hxx @@ -39,8 +39,8 @@ class MenuBarWrapper final : public UIConfigElementWrapperBase, // XInterface, XTypeProvider 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; virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override; virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override; diff --git a/framework/inc/uielement/rootitemcontainer.hxx b/framework/inc/uielement/rootitemcontainer.hxx index c9987d858ac9..cdfc82fada3e 100644 --- a/framework/inc/uielement/rootitemcontainer.hxx +++ b/framework/inc/uielement/rootitemcontainer.hxx @@ -56,9 +56,9 @@ class RootItemContainer final : private cppu::BaseMutex, virtual ~RootItemContainer() override; // XInterface - virtual void SAL_CALL acquire() throw () override + virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); } - virtual void SAL_CALL release() throw () override + virtual void SAL_CALL release() noexcept override { OWeakObject::release(); } virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& type) override; @@ -66,7 +66,7 @@ class RootItemContainer final : private cppu::BaseMutex, virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override; // XUnoTunnel - static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() throw(); + static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() noexcept; sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) override; // XIndexContainer diff --git a/framework/inc/uielement/toolbarwrapper.hxx b/framework/inc/uielement/toolbarwrapper.hxx index 904dfa6c7019..55142f98d500 100644 --- a/framework/inc/uielement/toolbarwrapper.hxx +++ b/framework/inc/uielement/toolbarwrapper.hxx @@ -44,8 +44,8 @@ class ToolBarWrapper final : public css::ui::XUIFunctionListener, virtual ~ToolBarWrapper() override; // 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; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; // XComponent diff --git a/framework/source/fwe/classes/actiontriggercontainer.cxx b/framework/source/fwe/classes/actiontriggercontainer.cxx index 331eb5cb935e..c21dbcbbd94d 100644 --- a/framework/source/fwe/classes/actiontriggercontainer.cxx +++ b/framework/source/fwe/classes/actiontriggercontainer.cxx @@ -58,12 +58,12 @@ Any SAL_CALL ActionTriggerContainer::queryInterface( const Type& aType ) return PropertySetContainer::queryInterface( aType ); } -void ActionTriggerContainer::acquire() throw() +void ActionTriggerContainer::acquire() noexcept { PropertySetContainer::acquire(); } -void ActionTriggerContainer::release() throw() +void ActionTriggerContainer::release() noexcept { PropertySetContainer::release(); } diff --git a/framework/source/fwe/classes/actiontriggerpropertyset.cxx b/framework/source/fwe/classes/actiontriggerpropertyset.cxx index 128f5815bb1a..404e7f00a6bf 100644 --- a/framework/source/fwe/classes/actiontriggerpropertyset.cxx +++ b/framework/source/fwe/classes/actiontriggerpropertyset.cxx @@ -87,12 +87,12 @@ Any SAL_CALL ActionTriggerPropertySet::queryInterface( const Type& aType ) return OWeakObject::queryInterface( aType ); } -void SAL_CALL ActionTriggerPropertySet::acquire() throw () +void SAL_CALL ActionTriggerPropertySet::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL ActionTriggerPropertySet::release() throw () +void SAL_CALL ActionTriggerPropertySet::release() noexcept { OWeakObject::release(); } diff --git a/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx b/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx index eb9d6d2ec71f..4d090384194c 100644 --- a/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx +++ b/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx @@ -82,12 +82,12 @@ Any SAL_CALL ActionTriggerSeparatorPropertySet::queryInterface( const Type& aTyp return OWeakObject::queryInterface( aType ); } -void ActionTriggerSeparatorPropertySet::acquire() throw() +void ActionTriggerSeparatorPropertySet::acquire() noexcept { OWeakObject::acquire(); } -void ActionTriggerSeparatorPropertySet::release() throw() +void ActionTriggerSeparatorPropertySet::release() noexcept { OWeakObject::release(); } diff --git a/framework/source/fwe/classes/rootactiontriggercontainer.cxx b/framework/source/fwe/classes/rootactiontriggercontainer.cxx index 4181011db25a..8a59027aae1b 100644 --- a/framework/source/fwe/classes/rootactiontriggercontainer.cxx +++ b/framework/source/fwe/classes/rootactiontriggercontainer.cxx @@ -74,12 +74,12 @@ Any SAL_CALL RootActionTriggerContainer::queryInterface( const Type& aType ) return PropertySetContainer::queryInterface( aType ); } -void SAL_CALL RootActionTriggerContainer::acquire() throw () +void SAL_CALL RootActionTriggerContainer::acquire() noexcept { PropertySetContainer::acquire(); } -void SAL_CALL RootActionTriggerContainer::release() throw () +void SAL_CALL RootActionTriggerContainer::release() noexcept { PropertySetContainer::release(); } diff --git a/framework/source/fwe/helper/propertysetcontainer.cxx b/framework/source/fwe/helper/propertysetcontainer.cxx index 5d129d36b01a..e2c304ce4808 100644 --- a/framework/source/fwe/helper/propertysetcontainer.cxx +++ b/framework/source/fwe/helper/propertysetcontainer.cxx @@ -45,12 +45,12 @@ PropertySetContainer::~PropertySetContainer() } // XInterface -void SAL_CALL PropertySetContainer::acquire() throw () +void SAL_CALL PropertySetContainer::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL PropertySetContainer::release() throw () +void SAL_CALL PropertySetContainer::release() noexcept { OWeakObject::release(); } diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx index 4aaaefc5d158..a137a5f8c6b1 100644 --- a/framework/source/fwi/uielement/constitemcontainer.cxx +++ b/framework/source/fwi/uielement/constitemcontainer.cxx @@ -169,7 +169,7 @@ sal_Int64 ConstItemContainer::getSomething( const css::uno::Sequence< sal_Int8 > return 0; } -const Sequence< sal_Int8 >& ConstItemContainer::getUnoTunnelId() throw() +const Sequence< sal_Int8 >& ConstItemContainer::getUnoTunnelId() noexcept { static const UnoTunnelIdInit theConstItemContainerUnoTunnelId; return theConstItemContainerUnoTunnelId.getSeq(); diff --git a/framework/source/fwi/uielement/itemcontainer.cxx b/framework/source/fwi/uielement/itemcontainer.cxx index 131ddf1a7cbe..b30791b3067f 100644 --- a/framework/source/fwi/uielement/itemcontainer.cxx +++ b/framework/source/fwi/uielement/itemcontainer.cxx @@ -134,7 +134,7 @@ Reference< XIndexAccess > ItemContainer::deepCopyContainer( const Reference< XIn return xReturn; } -const Sequence< sal_Int8 >& ItemContainer::getUnoTunnelId() throw() +const Sequence< sal_Int8 >& ItemContainer::getUnoTunnelId() noexcept { static const UnoTunnelIdInit theItemContainerUnoTunnelId; return theItemContainerUnoTunnelId.getSeq(); diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx index 6dc1f1587452..af754788de8a 100644 --- a/framework/source/fwi/uielement/rootitemcontainer.cxx +++ b/framework/source/fwi/uielement/rootitemcontainer.cxx @@ -146,7 +146,7 @@ sal_Int64 RootItemContainer::getSomething( const css::uno::Sequence< sal_Int8 >& return 0; } -const Sequence< sal_Int8 >& RootItemContainer::getUnoTunnelId() throw() +const Sequence< sal_Int8 >& RootItemContainer::getUnoTunnelId() noexcept { static const UnoTunnelIdInit theRootItemContainerUnoTunnelId; return theRootItemContainerUnoTunnelId.getSeq(); diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 9f79f0ac7a14..a994cf36f292 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -79,12 +79,12 @@ ToolbarLayoutManager::~ToolbarLayoutManager() // XInterface -void SAL_CALL ToolbarLayoutManager::acquire() throw() +void SAL_CALL ToolbarLayoutManager::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL ToolbarLayoutManager::release() throw() +void SAL_CALL ToolbarLayoutManager::release() noexcept { OWeakObject::release(); } diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx index 71b00310151e..3741875c1d3f 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx @@ -120,8 +120,8 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper< css::awt::XDockableW // 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; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; // XEventListener diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 3fdf6c0af01c..495d22cee201 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -467,9 +467,9 @@ public: } // XInterface - virtual void SAL_CALL acquire() throw () override + virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); } - virtual void SAL_CALL release() throw () override + virtual void SAL_CALL release() noexcept override { OWeakObject::release(); } virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& type) override; diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx index b58091294231..6dcef5a80061 100644 --- a/framework/source/services/pathsettings.cxx +++ b/framework/source/services/pathsettings.cxx @@ -191,9 +191,9 @@ public: // XInterface virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& type) override; - virtual void SAL_CALL acquire() throw () override + virtual void SAL_CALL acquire() noexcept override { OWeakObject::acquire(); } - virtual void SAL_CALL release() throw () override + virtual void SAL_CALL release() noexcept override { OWeakObject::release(); } // XTypeProvider diff --git a/framework/source/uielement/buttontoolbarcontroller.cxx b/framework/source/uielement/buttontoolbarcontroller.cxx index 6c5c3fdeb88c..a3ccbc0cd38d 100644 --- a/framework/source/uielement/buttontoolbarcontroller.cxx +++ b/framework/source/uielement/buttontoolbarcontroller.cxx @@ -75,12 +75,12 @@ uno::Any SAL_CALL ButtonToolbarController::queryInterface( const uno::Type& rTyp return cppu::OWeakObject::queryInterface( rType ); } -void SAL_CALL ButtonToolbarController::acquire() throw () +void SAL_CALL ButtonToolbarController::acquire() noexcept { cppu::OWeakObject::acquire(); } -void SAL_CALL ButtonToolbarController::release() throw () +void SAL_CALL ButtonToolbarController::release() noexcept { cppu::OWeakObject::release(); } diff --git a/framework/source/uielement/menubarwrapper.cxx b/framework/source/uielement/menubarwrapper.cxx index 9d39e2623dce..a8bf9a845f6c 100644 --- a/framework/source/uielement/menubarwrapper.cxx +++ b/framework/source/uielement/menubarwrapper.cxx @@ -44,13 +44,13 @@ using namespace ::com::sun::star::ui; namespace framework { -void SAL_CALL MenuBarWrapper::acquire() throw() \ +void SAL_CALL MenuBarWrapper::acquire() noexcept \ { \ /* Don't use mutex in methods of XInterface! */ \ UIConfigElementWrapperBase::acquire(); \ } \ \ -void SAL_CALL MenuBarWrapper::release() throw() \ +void SAL_CALL MenuBarWrapper::release() noexcept \ { \ /* Don't use mutex in methods of XInterface! */ \ UIConfigElementWrapperBase::release(); \ diff --git a/framework/source/uielement/toolbarwrapper.cxx b/framework/source/uielement/toolbarwrapper.cxx index 1199cd7ca51a..0928c5a4702a 100644 --- a/framework/source/uielement/toolbarwrapper.cxx +++ b/framework/source/uielement/toolbarwrapper.cxx @@ -56,12 +56,12 @@ ToolBarWrapper::~ToolBarWrapper() } // XInterface -void SAL_CALL ToolBarWrapper::acquire() throw() +void SAL_CALL ToolBarWrapper::acquire() noexcept { UIConfigElementWrapperBase::acquire(); } -void SAL_CALL ToolBarWrapper::release() throw() +void SAL_CALL ToolBarWrapper::release() noexcept { UIConfigElementWrapperBase::release(); } |