Kaydet (Commit) e57ca028 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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/33574Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 8802ebd5

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -74,7 +74,7 @@ public:
virtual css::uno::Any SAL_CALL queryInterface(
const css::uno::Type& aType
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
// XTypeProvider
......@@ -86,62 +86,59 @@ public:
@onerror A RuntimeException is thrown.
*/
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
// XAggregation
virtual css::uno::Any SAL_CALL queryAggregation(
const css::uno::Type& aType
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
// XControl
virtual void SAL_CALL createPeer(
const css::uno::Reference< css::awt::XToolkit >& xToolkit ,
const css::uno::Reference< css::awt::XWindowPeer >& xParent
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
virtual sal_Bool SAL_CALL setModel(
const css::uno::Reference< css::awt::XControlModel >& xModel
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel()
throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel() override;
// XComponent
virtual void SAL_CALL dispose() throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL dispose() 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;
// XControlContainer
virtual void SAL_CALL addControl(
const OUString& sName ,
const css::uno::Reference< css::awt::XControl >& xControl
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
virtual void SAL_CALL removeControl(
const css::uno::Reference< css::awt::XControl >& xControl
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
virtual void SAL_CALL setStatusText(
const OUString& sStatusText
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
virtual css::uno::Reference< css::awt::XControl > SAL_CALL getControl(
const OUString& sName
) throw( css::uno::RuntimeException, std::exception ) override;
) override;
virtual css::uno::Sequence< css::uno::Reference< css::awt::XControl > > SAL_CALL getControls()
throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< css::uno::Reference< css::awt::XControl > > SAL_CALL getControls() override;
// XWindow
virtual void SAL_CALL setVisible( sal_Bool bVisible ) throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL setVisible( sal_Bool bVisible ) override;
protected:
using OComponentHelper::disposing;
......
This diff is collapsed.
......@@ -100,8 +100,7 @@ public:
@onerror A RuntimeException is thrown.
*/
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType )
throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
/**_______________________________________________________________________________________________________
@short increment refcount
......@@ -154,88 +153,65 @@ public:
// XEventListener
virtual void SAL_CALL disposing(const css::lang::EventObject& aSource)
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL disposing(const css::lang::EventObject& aSource) override;
// XFocusListener
virtual void SAL_CALL focusGained(const css::awt::FocusEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL focusGained(const css::awt::FocusEvent& aEvent ) override;
virtual void SAL_CALL focusLost(const css::awt::FocusEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL focusLost(const css::awt::FocusEvent& aEvent ) override;
// XWindowListener
virtual void SAL_CALL windowResized(const css::awt::WindowEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowResized(const css::awt::WindowEvent& aEvent ) override;
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent& aEvent ) override;
virtual void SAL_CALL windowShown(const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowShown(const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowHidden(const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowHidden(const css::lang::EventObject& aEvent ) override;
// XKeyListener
virtual void SAL_CALL keyPressed( const css::awt::KeyEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL keyPressed( const css::awt::KeyEvent& aEvent ) override;
virtual void SAL_CALL keyReleased( const css::awt::KeyEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL keyReleased( const css::awt::KeyEvent& aEvent ) override;
// XMouseListener
virtual void SAL_CALL mousePressed(const css::awt::MouseEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL mousePressed(const css::awt::MouseEvent& aEvent ) override;
virtual void SAL_CALL mouseReleased(const css::awt::MouseEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL mouseReleased(const css::awt::MouseEvent& aEvent ) override;
virtual void SAL_CALL mouseEntered(const css::awt::MouseEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL mouseEntered(const css::awt::MouseEvent& aEvent ) override;
virtual void SAL_CALL mouseExited(const css::awt::MouseEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL mouseExited(const css::awt::MouseEvent& aEvent ) override;
// XMouseMotionListener
virtual void SAL_CALL mouseDragged(const css::awt::MouseEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL mouseDragged(const css::awt::MouseEvent& aEvent ) override;
virtual void SAL_CALL mouseMoved(const css::awt::MouseEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL mouseMoved(const css::awt::MouseEvent& aEvent ) override;
// XPaintListener
virtual void SAL_CALL windowPaint(const css::awt::PaintEvent& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowPaint(const css::awt::PaintEvent& aEvent ) override;
// XTopWindowListener
virtual void SAL_CALL windowOpened( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowOpened( const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowClosing( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowClosing( const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowClosed( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowClosed( const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowMinimized( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowMinimized( const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowNormalized( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowNormalized( const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowActivated( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowActivated( const css::lang::EventObject& aEvent ) override;
virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& aEvent )
throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& aEvent ) override;
// protected methods
......
......@@ -48,7 +48,7 @@ BaseContainerControl::~BaseContainerControl()
// XInterface
Any SAL_CALL BaseContainerControl::queryInterface( const Type& rType ) throw( RuntimeException, std::exception )
Any SAL_CALL BaseContainerControl::queryInterface( const Type& rType )
{
// Attention:
// Don't use mutex or guard in this method!!! Is a method of XInterface.
......@@ -71,7 +71,7 @@ Any SAL_CALL BaseContainerControl::queryInterface( const Type& rType ) throw( Ru