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 /vcl/unx/gtk/a11y | |
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 'vcl/unx/gtk/a11y')
-rw-r--r-- | vcl/unx/gtk/a11y/atkaction.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkcomponent.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkeditabletext.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkhypertext.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkimage.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.hxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkselection.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atktable.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atktext.cxx | 8 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 34 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkvalue.cxx | 2 |
13 files changed, 32 insertions, 38 deletions
diff --git a/vcl/unx/gtk/a11y/atkaction.cxx b/vcl/unx/gtk/a11y/atkaction.cxx index 3dc2fea35c72..faadc4091ba4 100644 --- a/vcl/unx/gtk/a11y/atkaction.cxx +++ b/vcl/unx/gtk/a11y/atkaction.cxx @@ -45,7 +45,7 @@ getAsConst( const OString& rString ) /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleAction> - getAction( AtkAction *action ) throw (uno::RuntimeException) + getAction( AtkAction *action ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( action ); diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx index 84ab86b0c87a..54e664b5ae39 100644 --- a/vcl/unx/gtk/a11y/atkcomponent.cxx +++ b/vcl/unx/gtk/a11y/atkcomponent.cxx @@ -25,7 +25,7 @@ using namespace ::com::sun::star; /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleComponent> - getComponent( AtkComponent *pComponent ) throw (uno::RuntimeException) + getComponent( AtkComponent *pComponent ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pComponent ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atkeditabletext.cxx b/vcl/unx/gtk/a11y/atkeditabletext.cxx index d7dda03a5321..070ee28ffa74 100644 --- a/vcl/unx/gtk/a11y/atkeditabletext.cxx +++ b/vcl/unx/gtk/a11y/atkeditabletext.cxx @@ -29,7 +29,7 @@ using namespace ::com::sun::star; /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleEditableText> - getEditableText( AtkEditableText *pEditableText ) throw (uno::RuntimeException) + getEditableText( AtkEditableText *pEditableText ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pEditableText ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atkhypertext.cxx b/vcl/unx/gtk/a11y/atkhypertext.cxx index 4a10b3c82733..356262feb4cb 100644 --- a/vcl/unx/gtk/a11y/atkhypertext.cxx +++ b/vcl/unx/gtk/a11y/atkhypertext.cxx @@ -191,7 +191,7 @@ hyper_link_get_type() /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleHypertext> - getHypertext( AtkHypertext *pHypertext ) throw (uno::RuntimeException) + getHypertext( AtkHypertext *pHypertext ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pHypertext ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atkimage.cxx b/vcl/unx/gtk/a11y/atkimage.cxx index 88897210fb2a..404871f1d3a9 100644 --- a/vcl/unx/gtk/a11y/atkimage.cxx +++ b/vcl/unx/gtk/a11y/atkimage.cxx @@ -37,7 +37,7 @@ getAsConst( const OUString& rString ) /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleImage> - getImage( AtkImage *pImage ) throw (uno::RuntimeException) + getImage( AtkImage *pImage ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pImage ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index 2901bcb73ecf..48dc6e83a895 100644 --- a/vcl/unx/gtk/a11y/atklistener.cxx +++ b/vcl/unx/gtk/a11y/atklistener.cxx @@ -93,7 +93,7 @@ extern "C" { } // XEventListener implementation -void AtkListener::disposing( const lang::EventObject& ) throw (uno::RuntimeException, std::exception) +void AtkListener::disposing( const lang::EventObject& ) { if( mpWrapper ) { @@ -420,7 +420,7 @@ void printNotifyEvent( const accessibility::AccessibleEventObject& rEvent ) #endif -void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEvent ) throw( uno::RuntimeException, std::exception ) +void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEvent ) { if( !mpWrapper ) return; diff --git a/vcl/unx/gtk/a11y/atklistener.hxx b/vcl/unx/gtk/a11y/atklistener.hxx index fccf03181c37..39d5075c8822 100644 --- a/vcl/unx/gtk/a11y/atklistener.hxx +++ b/vcl/unx/gtk/a11y/atklistener.hxx @@ -33,12 +33,10 @@ public: explicit AtkListener(AtkObjectWrapper * pWrapper); // XEventListener - virtual void disposing( const css::lang::EventObject& Source ) - throw (css::uno::RuntimeException, std::exception) override; + virtual void disposing( const css::lang::EventObject& Source ) override; // XAccessibleEventListener - virtual void notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) - throw( css::uno::RuntimeException, std::exception ) override; + virtual void notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override; private: diff --git a/vcl/unx/gtk/a11y/atkselection.cxx b/vcl/unx/gtk/a11y/atkselection.cxx index 39bf065cbb37..b6d2a711fa66 100644 --- a/vcl/unx/gtk/a11y/atkselection.cxx +++ b/vcl/unx/gtk/a11y/atkselection.cxx @@ -25,7 +25,7 @@ using namespace ::com::sun::star; /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleSelection> - getSelection( AtkSelection *pSelection ) throw (uno::RuntimeException) + getSelection( AtkSelection *pSelection ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pSelection ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atktable.cxx b/vcl/unx/gtk/a11y/atktable.cxx index 26fdef1659b2..a39110a61b16 100644 --- a/vcl/unx/gtk/a11y/atktable.cxx +++ b/vcl/unx/gtk/a11y/atktable.cxx @@ -50,7 +50,7 @@ getAsConst( const OUString& rString ) /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleTable> - getTable( AtkTable *pTable ) throw (uno::RuntimeException) + getTable( AtkTable *pTable ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pTable ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx index b08edd1fa18f..6dc3ca3692d8 100644 --- a/vcl/unx/gtk/a11y/atktext.cxx +++ b/vcl/unx/gtk/a11y/atktext.cxx @@ -135,7 +135,7 @@ adjust_boundaries( css::uno::Reference<css::accessibility::XAccessibleText> cons /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleText> - getText( AtkText *pText ) throw (uno::RuntimeException) + getText( AtkText *pText ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); if (pWrap) @@ -152,7 +152,7 @@ static css::uno::Reference<css::accessibility::XAccessibleText> /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleTextMarkup> - getTextMarkup( AtkText *pText ) throw (uno::RuntimeException) + getTextMarkup( AtkText *pText ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); if (pWrap) @@ -169,7 +169,7 @@ static css::uno::Reference<css::accessibility::XAccessibleTextMarkup> /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleTextAttributes> - getTextAttributes( AtkText *pText ) throw (uno::RuntimeException) + getTextAttributes( AtkText *pText ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); if (pWrap) @@ -186,7 +186,7 @@ static css::uno::Reference<css::accessibility::XAccessibleTextAttributes> /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleMultiLineText> - getMultiLineText( AtkText *pText ) throw (uno::RuntimeException) + getMultiLineText( AtkText *pText ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx index 4fa1afb42266..75971173f978 100644 --- a/vcl/unx/gtk/a11y/atktextattributes.cxx +++ b/vcl/unx/gtk/a11y/atktextattributes.cxx @@ -209,7 +209,7 @@ String2Float( uno::Any& rAny, const gchar * value ) /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleComponent> - getComponent( AtkText *pText ) throw (uno::RuntimeException) + getComponent( AtkText *pText ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); if (pWrap) diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index da165245be0b..c386e8b89899 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -143,14 +143,14 @@ public: /// @throws uno::RuntimeException void attachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible - ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + ); /// @trhows lang::IndexOutOfBoundsException /// @throws uno::RuntimeException void attachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext - ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + ); /// @trhows lang::IndexOutOfBoundsException /// @throws uno::RuntimeException @@ -158,20 +158,20 @@ public: const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext, const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet - ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + ); /// @trhows lang::IndexOutOfBoundsException /// @throws uno::RuntimeException void detachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible - ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + ); /// @trhows lang::IndexOutOfBoundsException /// @throws uno::RuntimeException void detachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext - ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + ); /// @trhows lang::IndexOutOfBoundsException /// @throws uno::RuntimeException @@ -179,24 +179,22 @@ public: const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext, const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet - ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + ); /// @trhows lang::IndexOutOfBoundsException /// @throws uno::RuntimeException - static uno::Reference< accessibility::XAccessible > getAccessible(const lang::EventObject& aEvent ) - throw (lang::IndexOutOfBoundsException, uno::RuntimeException); + static uno::Reference< accessibility::XAccessible > getAccessible(const lang::EventObject& aEvent ); // XEventListener - virtual void disposing( const lang::EventObject& Source ) throw (uno::RuntimeException, std::exception) override; + virtual void disposing( const lang::EventObject& Source ) override; // XAccessibleEventListener - virtual void notifyEvent( const accessibility::AccessibleEventObject& aEvent ) throw( uno::RuntimeException, std::exception ) override; + virtual void notifyEvent( const accessibility::AccessibleEventObject& aEvent ) override; }; /*****************************************************************************/ void DocumentFocusListener::disposing( const lang::EventObject& aEvent ) - throw (uno::RuntimeException, std::exception) { // Unref the object here, but do not remove as listener since the object @@ -209,7 +207,6 @@ void DocumentFocusListener::disposing( const lang::EventObject& aEvent ) /*****************************************************************************/ void DocumentFocusListener::notifyEvent( const accessibility::AccessibleEventObject& aEvent ) - throw( uno::RuntimeException, std::exception ) { try { switch( aEvent.EventId ) @@ -254,7 +251,6 @@ void DocumentFocusListener::notifyEvent( const accessibility::AccessibleEventObj /*****************************************************************************/ uno::Reference< accessibility::XAccessible > DocumentFocusListener::getAccessible(const lang::EventObject& aEvent ) - throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { uno::Reference< accessibility::XAccessible > xAccessible(aEvent.Source, uno::UNO_QUERY); @@ -283,7 +279,7 @@ uno::Reference< accessibility::XAccessible > DocumentFocusListener::getAccessibl void DocumentFocusListener::attachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible -) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) +) { uno::Reference< accessibility::XAccessibleContext > xContext = xAccessible->getAccessibleContext(); @@ -297,7 +293,7 @@ void DocumentFocusListener::attachRecursive( void DocumentFocusListener::attachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext -) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) +) { uno::Reference< accessibility::XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet(); @@ -312,7 +308,7 @@ void DocumentFocusListener::attachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext, const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet -) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) +) { if( xStateSet->contains(accessibility::AccessibleStateType::FOCUSED ) ) atk_wrapper_focus_tracker_notify_when_idle( xAccessible ); @@ -347,7 +343,7 @@ void DocumentFocusListener::attachRecursive( void DocumentFocusListener::detachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible -) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) +) { uno::Reference< accessibility::XAccessibleContext > xContext = xAccessible->getAccessibleContext(); @@ -361,7 +357,7 @@ void DocumentFocusListener::detachRecursive( void DocumentFocusListener::detachRecursive( const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext -) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) +) { uno::Reference< accessibility::XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet(); @@ -376,7 +372,7 @@ void DocumentFocusListener::detachRecursive( const uno::Reference< accessibility::XAccessible >&, const uno::Reference< accessibility::XAccessibleContext >& xContext, const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet -) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) +) { uno::Reference< accessibility::XAccessibleEventBroadcaster > xBroadcaster = uno::Reference< accessibility::XAccessibleEventBroadcaster >(xContext, uno::UNO_QUERY); diff --git a/vcl/unx/gtk/a11y/atkvalue.cxx b/vcl/unx/gtk/a11y/atkvalue.cxx index 067333af5916..6c80e37b2969 100644 --- a/vcl/unx/gtk/a11y/atkvalue.cxx +++ b/vcl/unx/gtk/a11y/atkvalue.cxx @@ -27,7 +27,7 @@ using namespace ::com::sun::star; /// @throws uno::RuntimeException static css::uno::Reference<css::accessibility::XAccessibleValue> - getValue( AtkValue *pValue ) throw (uno::RuntimeException) + getValue( AtkValue *pValue ) { AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pValue ); if (pWrap) |