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 /scripting/source/provider/MasterScriptProvider.cxx | |
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 'scripting/source/provider/MasterScriptProvider.cxx')
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index c18d278bfc1e..9eaca17f0bc9 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -72,7 +72,7 @@ bool endsWith( const OUString& target, // XScriptProvider implementation -MasterScriptProvider::MasterScriptProvider( const Reference< XComponentContext > & xContext ) throw ( RuntimeException ): +MasterScriptProvider::MasterScriptProvider( const Reference< XComponentContext > & xContext ): m_xContext( xContext ), m_bIsValid( false ), m_bInitialised( false ), m_bIsPkgMSP( false ), m_pPCache( nullptr ) { @@ -94,7 +94,6 @@ MasterScriptProvider::~MasterScriptProvider() void SAL_CALL MasterScriptProvider::initialize( const Sequence < Any >& args ) -throw ( Exception, RuntimeException, std::exception ) { if ( m_bInitialised ) return; @@ -229,8 +228,6 @@ void MasterScriptProvider::createPkgProvider() Reference< provider::XScript > MasterScriptProvider::getScript( const OUString& scriptURI ) -throw ( provider::ScriptFrameworkErrorException, - RuntimeException, std::exception ) { if ( !m_bIsValid ) { @@ -384,7 +381,6 @@ MasterScriptProvider::providerCache() OUString SAL_CALL MasterScriptProvider::getName() - throw ( css::uno::RuntimeException, std::exception ) { if ( !m_bIsPkgMSP ) { @@ -414,7 +410,6 @@ MasterScriptProvider::getName() Sequence< Reference< browse::XBrowseNode > > SAL_CALL MasterScriptProvider::getChildNodes() - throw ( css::uno::RuntimeException, std::exception ) { if ( !providerCache() ) throw RuntimeException( "MasterScriptProvider::getAllProviders, cache not initialised" ); @@ -445,7 +440,6 @@ MasterScriptProvider::getChildNodes() sal_Bool SAL_CALL MasterScriptProvider::hasChildNodes() - throw ( css::uno::RuntimeException, std::exception ) { return true; } @@ -453,7 +447,6 @@ MasterScriptProvider::hasChildNodes() sal_Int16 SAL_CALL MasterScriptProvider::getType() - throw ( css::uno::RuntimeException, std::exception ) { return browse::BrowseNodeTypes::CONTAINER; } @@ -474,7 +467,7 @@ MasterScriptProvider::parseLocationName( const OUString& location ) // Register Package void SAL_CALL -MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, css::uno::RuntimeException, std::exception) +MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) { if ( !m_bIsPkgMSP ) { @@ -553,7 +546,7 @@ MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) // Revoke Package void SAL_CALL -MasterScriptProvider::removeByName( const OUString& Name ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) +MasterScriptProvider::removeByName( const OUString& Name ) { if ( !m_bIsPkgMSP ) { @@ -624,7 +617,7 @@ MasterScriptProvider::removeByName( const OUString& Name ) throw ( container::No void SAL_CALL -MasterScriptProvider::replaceByName( const OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) +MasterScriptProvider::replaceByName( const OUString& aName, const Any& aElement ) { (void)aName; (void)aElement; @@ -637,7 +630,7 @@ MasterScriptProvider::replaceByName( const OUString& aName, const Any& aElement } Any SAL_CALL -MasterScriptProvider::getByName( const OUString& aName ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) +MasterScriptProvider::getByName( const OUString& aName ) { (void)aName; @@ -651,7 +644,7 @@ MasterScriptProvider::getByName( const OUString& aName ) throw ( container::NoSu } sal_Bool SAL_CALL -MasterScriptProvider::hasByName( const OUString& aName ) throw (RuntimeException, std::exception) +MasterScriptProvider::hasByName( const OUString& aName ) { bool result = false; if ( !m_bIsPkgMSP ) @@ -721,7 +714,7 @@ MasterScriptProvider::hasByName( const OUString& aName ) throw (RuntimeException Sequence< OUString > SAL_CALL -MasterScriptProvider::getElementNames( ) throw ( RuntimeException, std::exception) +MasterScriptProvider::getElementNames( ) { // TODO needs implementing Sequence< OUString > names; @@ -733,14 +726,14 @@ MasterScriptProvider::getElementNames( ) throw ( RuntimeException, std::excepti } Type SAL_CALL -MasterScriptProvider::getElementType( ) throw ( RuntimeException, std::exception) +MasterScriptProvider::getElementType( ) { // TODO needs implementing Type t; return t; } -sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) throw ( RuntimeException, std::exception) +sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) { // TODO needs implementing if ( true ) @@ -752,20 +745,17 @@ sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) throw ( RuntimeException OUString SAL_CALL MasterScriptProvider::getImplementationName( ) -throw( RuntimeException, std::exception ) { return OUString( "com.sun.star.script.provider.MasterScriptProvider" ); } sal_Bool SAL_CALL MasterScriptProvider::supportsService( const OUString& serviceName ) -throw( RuntimeException, std::exception ) { return cppu::supportsService(this, serviceName); } Sequence< OUString > SAL_CALL MasterScriptProvider::getSupportedServiceNames( ) -throw( RuntimeException, std::exception ) { OUString names[3]; |