diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:28:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:54:43 +0000 |
commit | e57ca02849c3d87142ff5ff9099a212e72b8139c (patch) | |
tree | bcce66b27261553c308779f3e8663a269ed3a671 /include/sfx2/sidebar | |
parent | 8802ebd5172ec4bc412a59d136c82b77ab452281 (diff) |
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.
Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly). The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually). There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).
Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code. Missing @throws
documentation has not been applied in such manual clean-up.
Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/sfx2/sidebar')
-rw-r--r-- | include/sfx2/sidebar/Accessible.hxx | 3 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarController.hxx | 15 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarPanelBase.hxx | 36 | ||||
-rw-r--r-- | include/sfx2/sidebar/Theme.hxx | 43 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoDeck.hxx | 44 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoDecks.hxx | 25 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoPanel.hxx | 47 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoPanels.hxx | 28 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoSidebar.hxx | 18 |
9 files changed, 82 insertions, 177 deletions
diff --git a/include/sfx2/sidebar/Accessible.hxx b/include/sfx2/sidebar/Accessible.hxx index 38c9fb7fdf7c..34e436972893 100644 --- a/include/sfx2/sidebar/Accessible.hxx +++ b/include/sfx2/sidebar/Accessible.hxx @@ -49,8 +49,7 @@ public: virtual void SAL_CALL disposing() override; // XAccessible - virtual css::uno::Reference<css::accessibility::XAccessibleContext> SAL_CALL getAccessibleContext() - throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference<css::accessibility::XAccessibleContext> SAL_CALL getAccessibleContext() override; private: css::uno::Reference<css::accessibility::XAccessibleContext> mxContext; diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx index 519daef5da82..e648b2b3bb9a 100644 --- a/include/sfx2/sidebar/SidebarController.hxx +++ b/include/sfx2/sidebar/SidebarController.hxx @@ -86,24 +86,19 @@ public: static void unregisterSidebarForFrame(SidebarController* pController, const css::uno::Reference<css::frame::XController>& xFrame); // ui::XContextChangeEventListener - virtual void SAL_CALL notifyContextChangeEvent (const css::ui::ContextChangeEventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL notifyContextChangeEvent (const css::ui::ContextChangeEventObject& rEvent) override; // XEventListener - virtual void SAL_CALL disposing (const css::lang::EventObject& rEventObject) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL disposing (const css::lang::EventObject& rEventObject) override; // beans::XPropertyChangeListener - virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent& rEvent) override; // frame::XStatusListener - virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent& rEvent) override; // ui::XSidebar - virtual void SAL_CALL requestLayout() - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL requestLayout() override; void NotifyResize(); diff --git a/include/sfx2/sidebar/SidebarPanelBase.hxx b/include/sfx2/sidebar/SidebarPanelBase.hxx index 6fe46dcb7c46..e87014708cf1 100644 --- a/include/sfx2/sidebar/SidebarPanelBase.hxx +++ b/include/sfx2/sidebar/SidebarPanelBase.hxx @@ -59,39 +59,28 @@ public: const css::ui::LayoutSize& rLayoutSize); // XContextChangeEventListener - virtual void SAL_CALL notifyContextChangeEvent (const css::ui::ContextChangeEventObject& rEvent) - throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL notifyContextChangeEvent (const css::ui::ContextChangeEventObject& rEvent) override; // XEventListener - virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) - throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override; // XUIElement - virtual css::uno::Reference<css::frame::XFrame> SAL_CALL getFrame() - throw(css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getResourceURL() - throw(css::uno::RuntimeException, std::exception) override; - virtual sal_Int16 SAL_CALL getType() - throw(css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference<css::uno::XInterface> SAL_CALL getRealInterface() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference<css::frame::XFrame> SAL_CALL getFrame() override; + virtual OUString SAL_CALL getResourceURL() override; + virtual sal_Int16 SAL_CALL getType() override; + virtual css::uno::Reference<css::uno::XInterface> SAL_CALL getRealInterface() override; // XToolPanel virtual css::uno::Reference<css::accessibility::XAccessible> SAL_CALL createAccessible( - const css::uno::Reference<css::accessibility::XAccessible>& rxParentAccessible) - throw(css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference<css::awt::XWindow> SAL_CALL getWindow() - throw(css::uno::RuntimeException, std::exception) override; + const css::uno::Reference<css::accessibility::XAccessible>& rxParentAccessible) override; + virtual css::uno::Reference<css::awt::XWindow> SAL_CALL getWindow() override; // XSidebarPanel - virtual css::ui::LayoutSize SAL_CALL getHeightForWidth(sal_Int32 nWidth) - throw(css::uno::RuntimeException, std::exception) override; - virtual sal_Int32 SAL_CALL getMinimalWidth() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::ui::LayoutSize SAL_CALL getHeightForWidth(sal_Int32 nWidth) override; + virtual sal_Int32 SAL_CALL getMinimalWidth() override; // XUpdateModel - virtual void SAL_CALL updateModel(const css::uno::Reference<css::frame::XModel>& xModel) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL updateModel(const css::uno::Reference<css::frame::XModel>& xModel) override; protected: css::uno::Reference<css::frame::XFrame> mxFrame; @@ -102,8 +91,7 @@ protected: SidebarPanelBase(const SidebarPanelBase&) = delete; SidebarPanelBase& operator=( const SidebarPanelBase& ) = delete; - virtual void SAL_CALL disposing() - throw (css::uno::RuntimeException) override; + virtual void SAL_CALL disposing() override; private: VclPtr<vcl::Window> mpControl; diff --git a/include/sfx2/sidebar/Theme.hxx b/include/sfx2/sidebar/Theme.hxx index f457d740ed9c..6f0915e1c17a 100644 --- a/include/sfx2/sidebar/Theme.hxx +++ b/include/sfx2/sidebar/Theme.hxx @@ -153,52 +153,29 @@ public: static css::uno::Reference<css::beans::XPropertySet> GetPropertySet(); // beans::XPropertySet - virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override; virtual void SAL_CALL setPropertyValue ( const ::rtl::OUString& rsPropertyName, - const css::uno::Any& rValue) - throw (css::beans::UnknownPropertyException, - css::uno::RuntimeException, - std::exception) override; + const css::uno::Any& rValue) override; virtual css::uno::Any SAL_CALL getPropertyValue ( - const ::rtl::OUString& rsPropertyName) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const ::rtl::OUString& rsPropertyName) override; virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& rsPropertyName, - const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener) override; virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& rsPropertyName, - const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener) override; virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& rsPropertyName, - const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) override; virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& rsPropertyName, - const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) override; // beans::XPropertySetInfo - virtual css::uno::Sequence<css::beans::Property> SAL_CALL getProperties() - throw(css::uno::RuntimeException, std::exception) override; - virtual css::beans::Property SAL_CALL getPropertyByName (const ::rtl::OUString& rsName) - throw(css::beans::UnknownPropertyException, - css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasPropertyByName (const ::rtl::OUString& rsName) - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence<css::beans::Property> SAL_CALL getProperties() override; + virtual css::beans::Property SAL_CALL getPropertyByName (const ::rtl::OUString& rsName) override; + virtual sal_Bool SAL_CALL hasPropertyByName (const ::rtl::OUString& rsName) override; private: static Theme& GetCurrentTheme(); diff --git a/include/sfx2/sidebar/UnoDeck.hxx b/include/sfx2/sidebar/UnoDeck.hxx index 9e4d05255b15..b0e82e63f1da 100644 --- a/include/sfx2/sidebar/UnoDeck.hxx +++ b/include/sfx2/sidebar/UnoDeck.hxx @@ -30,34 +30,22 @@ public: SfxUnoDeck(const css::uno::Reference<css::frame::XFrame>& , const OUString&); - virtual OUString SAL_CALL getId() - throw(css::uno::RuntimeException, std::exception) override; - - virtual OUString SAL_CALL getTitle() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setTitle( const OUString& newTitle ) - throw(css::uno::RuntimeException, std::exception) override; - - virtual sal_Bool SAL_CALL isActive() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL activate( const sal_Bool bActivate ) - throw(css::uno::RuntimeException, std::exception) override; - - virtual css::uno::Reference<css::ui::XPanels> SAL_CALL getPanels() - throw(css::uno::RuntimeException, std::exception) override; - - virtual sal_Int32 SAL_CALL getOrderIndex() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setOrderIndex( const sal_Int32 newOrderIndex ) - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveFirst() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveLast() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveUp() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveDown() - throw(css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getId() override; + + virtual OUString SAL_CALL getTitle() override; + virtual void SAL_CALL setTitle( const OUString& newTitle ) override; + + virtual sal_Bool SAL_CALL isActive() override; + virtual void SAL_CALL activate( const sal_Bool bActivate ) override; + + virtual css::uno::Reference<css::ui::XPanels> SAL_CALL getPanels() override; + + virtual sal_Int32 SAL_CALL getOrderIndex() override; + virtual void SAL_CALL setOrderIndex( const sal_Int32 newOrderIndex ) override; + virtual void SAL_CALL moveFirst() override; + virtual void SAL_CALL moveLast() override; + virtual void SAL_CALL moveUp() override; + virtual void SAL_CALL moveDown() override; private: diff --git a/include/sfx2/sidebar/UnoDecks.hxx b/include/sfx2/sidebar/UnoDecks.hxx index 34cf6ff87521..3f7c623283e0 100644 --- a/include/sfx2/sidebar/UnoDecks.hxx +++ b/include/sfx2/sidebar/UnoDecks.hxx @@ -34,32 +34,21 @@ public: // XNameAccess - virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) - throw(css::container::NoSuchElementException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override; - virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override; - virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) - throw(css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override; // XIndexAccess - virtual sal_Int32 SAL_CALL getCount() - throw(css::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getCount() override; - virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) - throw(css::lang::IndexOutOfBoundsException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override; // XElementAccess - virtual css::uno::Type SAL_CALL getElementType() - throw(css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasElements() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Type SAL_CALL getElementType() override; + virtual sal_Bool SAL_CALL hasElements() override; private: diff --git a/include/sfx2/sidebar/UnoPanel.hxx b/include/sfx2/sidebar/UnoPanel.hxx index 8c308100af46..b77a0ab0fcec 100644 --- a/include/sfx2/sidebar/UnoPanel.hxx +++ b/include/sfx2/sidebar/UnoPanel.hxx @@ -33,36 +33,23 @@ public: SfxUnoPanel(const css::uno::Reference<css::frame::XFrame>& , const OUString&, const OUString&); - virtual OUString SAL_CALL getId() - throw(css::uno::RuntimeException, std::exception) override; - - virtual OUString SAL_CALL getTitle() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setTitle( const OUString& newTitle ) - throw(css::uno::RuntimeException, std::exception) override; - - virtual sal_Bool SAL_CALL isExpanded() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL expand( const sal_Bool bCollapseOther ) - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL collapse( ) - throw(css::uno::RuntimeException, std::exception) override; - - virtual sal_Int32 SAL_CALL getOrderIndex() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setOrderIndex( const sal_Int32 newOrderIndex ) - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveFirst() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveLast() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveUp() - throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL moveDown() - throw(css::uno::RuntimeException, std::exception) override; - - virtual css::uno::Reference<css::awt::XWindow> SAL_CALL getDialog() - throw(css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getId() override; + + virtual OUString SAL_CALL getTitle() override; + virtual void SAL_CALL setTitle( const OUString& newTitle ) override; + + virtual sal_Bool SAL_CALL isExpanded() override; + virtual void SAL_CALL expand( const sal_Bool bCollapseOther ) override; + virtual void SAL_CALL collapse( ) override; + + virtual sal_Int32 SAL_CALL getOrderIndex() override; + virtual void SAL_CALL setOrderIndex( const sal_Int32 newOrderIndex ) override; + virtual void SAL_CALL moveFirst() override; + virtual void SAL_CALL moveLast() override; + virtual void SAL_CALL moveUp() override; + virtual void SAL_CALL moveDown() override; + + virtual css::uno::Reference<css::awt::XWindow> SAL_CALL getDialog() override; private: diff --git a/include/sfx2/sidebar/UnoPanels.hxx b/include/sfx2/sidebar/UnoPanels.hxx index b9558b4efc34..71aa7d0431bd 100644 --- a/include/sfx2/sidebar/UnoPanels.hxx +++ b/include/sfx2/sidebar/UnoPanels.hxx @@ -31,37 +31,25 @@ public: SfxUnoPanels(const css::uno::Reference<css::frame::XFrame>& , const OUString&); // XPanels - virtual OUString SAL_CALL getDeckId() - throw(css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getDeckId() override; // XNameAccess - virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) - throw(css::container::NoSuchElementException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override; - virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override; - virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) - throw(css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override; // XIndexAccess - virtual sal_Int32 SAL_CALL getCount() - throw(css::uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getCount() override; - virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) - throw(css::lang::IndexOutOfBoundsException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override; // XElementAccess - virtual css::uno::Type SAL_CALL getElementType() - throw(css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasElements() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Type SAL_CALL getElementType() override; + virtual sal_Bool SAL_CALL hasElements() override; private: diff --git a/include/sfx2/sidebar/UnoSidebar.hxx b/include/sfx2/sidebar/UnoSidebar.hxx index 515ba9648906..a60143b65f94 100644 --- a/include/sfx2/sidebar/UnoSidebar.hxx +++ b/include/sfx2/sidebar/UnoSidebar.hxx @@ -40,24 +40,18 @@ public: SfxUnoSidebar(const css::uno::Reference<css::frame::XFrame>&); - virtual void SAL_CALL showDecks (const sal_Bool bVisible) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL showDecks (const sal_Bool bVisible) override; - virtual void SAL_CALL setVisible (const sal_Bool bVisible) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setVisible (const sal_Bool bVisible) override; - virtual sal_Bool SAL_CALL isVisible() - throw(css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL isVisible() override; - virtual css::uno::Reference<css::frame::XFrame> SAL_CALL getFrame() - throw( css::uno::RuntimeException, std::exception ) override; + virtual css::uno::Reference<css::frame::XFrame> SAL_CALL getFrame() override; - virtual css::uno::Reference<css::ui::XDecks> SAL_CALL getDecks() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference<css::ui::XDecks> SAL_CALL getDecks() override; - virtual css::uno::Reference<css::ui::XSidebar> SAL_CALL getSidebar() - throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference<css::ui::XSidebar> SAL_CALL getSidebar() override; }; |