From e57ca02849c3d87142ff5ff9099a212e72b8139c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Jan 2017 12:28:58 +0100 Subject: Remove dynamic exception specifications ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at "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 Reviewed-by: Stephan Bergmann --- xmlhelp/source/cxxhelp/provider/provider.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'xmlhelp/source/cxxhelp/provider/provider.cxx') diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 0cd7c897b8ec..6f5fad966224 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -70,7 +70,6 @@ void SAL_CALL ContentProvider::release() } css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType ) - throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet = cppu::queryInterface( rType, (static_cast< lang::XTypeProvider* >(this)), @@ -86,13 +85,11 @@ css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & r // XTypeProvider methods. css::uno::Sequence< sal_Int8 > SAL_CALL ContentProvider::getImplementationId() - throw( css::uno::RuntimeException, std::exception ) { return css::uno::Sequence(); } css::uno::Sequence< css::uno::Type > SAL_CALL ContentProvider::getTypes() - throw( css::uno::RuntimeException, std::exception ) { static cppu::OTypeCollection* pCollection = nullptr; if ( !pCollection ) @@ -117,7 +114,6 @@ css::uno::Sequence< css::uno::Type > SAL_CALL ContentProvider::getTypes() // XServiceInfo methods. OUString SAL_CALL ContentProvider::getImplementationName() - throw( uno::RuntimeException, std::exception ) { return getImplementationName_Static(); } @@ -129,14 +125,12 @@ OUString ContentProvider::getImplementationName_Static() sal_Bool SAL_CALL ContentProvider::supportsService(const OUString& ServiceName ) - throw( uno::RuntimeException, std::exception ) { return cppu::supportsService(this, ServiceName); } uno::Sequence< OUString > SAL_CALL ContentProvider::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { return getSupportedServiceNames_Static(); } @@ -145,7 +139,6 @@ ContentProvider::getSupportedServiceNames() static uno::Reference< uno::XInterface > SAL_CALL ContentProvider_CreateInstance( const uno::Reference< lang::XMultiServiceFactory> & rSMgr ) - throw( uno::Exception ) { lang::XServiceInfo * pX = static_cast< lang::XServiceInfo * >( new ContentProvider( comphelper::getComponentContext(rSMgr) ) ); @@ -183,7 +176,6 @@ ContentProvider::createServiceFactory( const css::uno::Reference< uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent( const uno::Reference< ucb::XContentIdentifier >& xCanonicId ) - throw( ucb::IllegalIdentifierException, uno::RuntimeException, std::exception ) { if ( !xCanonicId->getContentProviderScheme() .equalsIgnoreAsciiCase( m_aScheme ) ) @@ -221,7 +213,6 @@ ContentProvider::queryContent( void SAL_CALL ContentProvider::dispose() - throw ( uno::RuntimeException, std::exception) { if(m_xContainer.is()) { @@ -232,7 +223,6 @@ ContentProvider::dispose() void SAL_CALL ContentProvider::elementReplaced(const container::ContainerEvent& Event) - throw (uno::RuntimeException, std::exception) { if(!m_pDatabases) return; -- cgit