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 /dbaccess/source/ext | |
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 'dbaccess/source/ext')
3 files changed, 24 insertions, 24 deletions
diff --git a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx index e663add04934..d20e6246617e 100644 --- a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx +++ b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx @@ -61,17 +61,17 @@ namespace dbmm explicit MacroMigrationDialogService( const Reference< XComponentContext >& _rxContext ); // XTypeProvider - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(RuntimeException, std::exception) override; + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception) override; - virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XInitialization - virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; // XPropertySet - virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(RuntimeException, std::exception) override; + virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo() override; virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; // OPropertyArrayUsageHelper @@ -80,9 +80,9 @@ namespace dbmm // helper for factories static Reference< XInterface > SAL_CALL Create( const Reference< XComponentContext >& _rxContext ); /// @throws RuntimeException - static OUString SAL_CALL getImplementationName_static() throw(RuntimeException); + static OUString SAL_CALL getImplementationName_static(); /// @throws RuntimeException - static Sequence< OUString > SAL_CALL getSupportedServiceNames_static() throw(RuntimeException); + static Sequence< OUString > SAL_CALL getSupportedServiceNames_static(); protected: virtual ~MacroMigrationDialogService() override; @@ -123,33 +123,33 @@ namespace dbmm return VclPtr<MacroMigrationDialog>::Create( _pParent, m_aContext, m_xDocument ); } - Sequence< sal_Int8 > SAL_CALL MacroMigrationDialogService::getImplementationId() throw(RuntimeException, std::exception) + Sequence< sal_Int8 > SAL_CALL MacroMigrationDialogService::getImplementationId() { return css::uno::Sequence<sal_Int8>(); } - OUString SAL_CALL MacroMigrationDialogService::getImplementationName_static() throw(RuntimeException) + OUString SAL_CALL MacroMigrationDialogService::getImplementationName_static() { return OUString( "com.sun.star.comp.dbaccess.macromigration.MacroMigrationDialogService" ); } - Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames_static() throw(RuntimeException) + Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames_static() { Sequence< OUString > aServices { "com.sun.star.sdb.application.MacroMigrationWizard" }; return aServices; } - OUString SAL_CALL MacroMigrationDialogService::getImplementationName() throw(RuntimeException, std::exception) + OUString SAL_CALL MacroMigrationDialogService::getImplementationName() { return getImplementationName_static(); } - Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames() throw(RuntimeException, std::exception) + Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames() { return getSupportedServiceNames_static(); } - void SAL_CALL MacroMigrationDialogService::initialize( const Sequence< Any >& _rArguments ) throw(Exception, RuntimeException, std::exception) + void SAL_CALL MacroMigrationDialogService::initialize( const Sequence< Any >& _rArguments ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bInitialized ) @@ -181,7 +181,7 @@ namespace dbmm m_bInitialized = true; } - Reference< XPropertySetInfo > SAL_CALL MacroMigrationDialogService::getPropertySetInfo() throw(RuntimeException, std::exception) + Reference< XPropertySetInfo > SAL_CALL MacroMigrationDialogService::getPropertySetInfo() { return createPropertySetInfo( getInfoHelper() ); } diff --git a/dbaccess/source/ext/macromigration/progresscapture.cxx b/dbaccess/source/ext/macromigration/progresscapture.cxx index 37dc871b4c06..daaba9d2d26d 100644 --- a/dbaccess/source/ext/macromigration/progresscapture.cxx +++ b/dbaccess/source/ext/macromigration/progresscapture.cxx @@ -59,35 +59,35 @@ namespace dbmm m_pData->bDisposed = true; } - void SAL_CALL ProgressCapture::start( const OUString& _rText, ::sal_Int32 _nRange ) throw (RuntimeException, std::exception) + void SAL_CALL ProgressCapture::start( const OUString& _rText, ::sal_Int32 _nRange ) { SolarMutexGuard aGuard; if ( !m_pData->bDisposed ) m_pData->rMasterProgress.startObject( m_pData->sObjectName, _rText, _nRange ); } - void SAL_CALL ProgressCapture::end( ) throw (RuntimeException, std::exception) + void SAL_CALL ProgressCapture::end( ) { SolarMutexGuard aGuard; if ( !m_pData->bDisposed ) m_pData->rMasterProgress.endObject(); } - void SAL_CALL ProgressCapture::setText( const OUString& _rText ) throw (RuntimeException, std::exception) + void SAL_CALL ProgressCapture::setText( const OUString& _rText ) { SolarMutexGuard aGuard; if ( !m_pData->bDisposed ) m_pData->rMasterProgress.setObjectProgressText( _rText ); } - void SAL_CALL ProgressCapture::setValue( ::sal_Int32 _nValue ) throw (RuntimeException, std::exception) + void SAL_CALL ProgressCapture::setValue( ::sal_Int32 _nValue ) { SolarMutexGuard aGuard; if ( !m_pData->bDisposed ) m_pData->rMasterProgress.setObjectProgressValue( _nValue ); } - void SAL_CALL ProgressCapture::reset( ) throw (RuntimeException, std::exception) + void SAL_CALL ProgressCapture::reset( ) { OSL_FAIL( "ProgressCapture::reset: not implemented!" ); } diff --git a/dbaccess/source/ext/macromigration/progresscapture.hxx b/dbaccess/source/ext/macromigration/progresscapture.hxx index e273e1a425b4..17cffd514eb0 100644 --- a/dbaccess/source/ext/macromigration/progresscapture.hxx +++ b/dbaccess/source/ext/macromigration/progresscapture.hxx @@ -45,11 +45,11 @@ namespace dbmm void dispose(); // XStatusIndicator - virtual void SAL_CALL start( const OUString& Text, ::sal_Int32 Range ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL end( ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setText( const OUString& Text ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setValue( ::sal_Int32 Value ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL reset( ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL start( const OUString& Text, ::sal_Int32 Range ) override; + virtual void SAL_CALL end( ) override; + virtual void SAL_CALL setText( const OUString& Text ) override; + virtual void SAL_CALL setValue( ::sal_Int32 Value ) override; + virtual void SAL_CALL reset( ) override; protected: virtual ~ProgressCapture() override; |