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 /linguistic/source/lngsvcmgr.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 'linguistic/source/lngsvcmgr.cxx')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 4cc4fa7c8b9f..0fcd7dfff492 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -199,19 +199,16 @@ public: // lang::XEventListener virtual void SAL_CALL - disposing( const lang::EventObject& rSource ) - throw(uno::RuntimeException, std::exception) override; + disposing( const lang::EventObject& rSource ) override; // linguistic2::XLinguServiceEventListener virtual void SAL_CALL - processLinguServiceEvent( const linguistic2::LinguServiceEvent& aLngSvcEvent ) - throw(uno::RuntimeException, std::exception) override; + processLinguServiceEvent( const linguistic2::LinguServiceEvent& aLngSvcEvent ) override; // linguistic2::XDictionaryListEventListener virtual void SAL_CALL processDictionaryListEvent( - const linguistic2::DictionaryListEvent& rDicListEvent ) - throw(uno::RuntimeException, std::exception) override; + const linguistic2::DictionaryListEvent& rDicListEvent ) override; inline bool AddLngSvcMgrListener( const uno::Reference< lang::XEventListener >& rxListener ); @@ -246,7 +243,6 @@ LngSvcMgrListenerHelper::LngSvcMgrListenerHelper( void SAL_CALL LngSvcMgrListenerHelper::disposing( const lang::EventObject& rSource ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -291,7 +287,6 @@ void LngSvcMgrListenerHelper::AddLngSvcEvt( sal_Int16 nLngSvcEvt ) void SAL_CALL LngSvcMgrListenerHelper::processLinguServiceEvent( const linguistic2::LinguServiceEvent& rLngSvcEvent ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); AddLngSvcEvt( rLngSvcEvent.nEvent ); @@ -301,7 +296,6 @@ void SAL_CALL void SAL_CALL LngSvcMgrListenerHelper::processDictionaryListEvent( const linguistic2::DictionaryListEvent& rDicListEvent ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -472,7 +466,6 @@ LngSvcMgr::LngSvcMgr() // css::util::XModifyListener void LngSvcMgr::modified(const lang::EventObject&) - throw(uno::RuntimeException, std::exception) { { osl::MutexGuard aGuard(GetLinguMutex()); @@ -532,7 +525,6 @@ void LngSvcMgr::stopListening() } void LngSvcMgr::disposing(const lang::EventObject&) - throw (uno::RuntimeException, std::exception) { stopListening(); } @@ -1408,7 +1400,6 @@ void LngSvcMgr::SetCfgServiceLists( ThesaurusDispatcher &rThesDsp ) uno::Reference< linguistic2::XSpellChecker > SAL_CALL LngSvcMgr::getSpellChecker() - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); #if OSL_DEBUG_LEVEL > 0 @@ -1428,7 +1419,6 @@ uno::Reference< linguistic2::XSpellChecker > SAL_CALL uno::Reference< linguistic2::XHyphenator > SAL_CALL LngSvcMgr::getHyphenator() - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); #if OSL_DEBUG_LEVEL > 0 @@ -1447,7 +1437,6 @@ uno::Reference< linguistic2::XHyphenator > SAL_CALL uno::Reference< linguistic2::XThesaurus > SAL_CALL LngSvcMgr::getThesaurus() - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); #if OSL_DEBUG_LEVEL > 0 @@ -1467,7 +1456,6 @@ uno::Reference< linguistic2::XThesaurus > SAL_CALL sal_Bool SAL_CALL LngSvcMgr::addLinguServiceManagerListener( const uno::Reference< lang::XEventListener >& xListener ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1485,7 +1473,6 @@ sal_Bool SAL_CALL sal_Bool SAL_CALL LngSvcMgr::removeLinguServiceManagerListener( const uno::Reference< lang::XEventListener >& xListener ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1505,8 +1492,6 @@ uno::Sequence< OUString > SAL_CALL LngSvcMgr::getAvailableServices( const OUString& rServiceName, const lang::Locale& rLocale ) - throw(uno::RuntimeException, - std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1565,7 +1550,6 @@ uno::Sequence< OUString > SAL_CALL uno::Sequence< lang::Locale > SAL_CALL LngSvcMgr::getAvailableLocales( const OUString& rServiceName ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1620,7 +1604,6 @@ void SAL_CALL const OUString& rServiceName, const lang::Locale& rLocale, const uno::Sequence< OUString >& rServiceImplNames ) - throw(uno::RuntimeException, std::exception) { SAL_INFO( "linguistic", "linguistic: LngSvcMgr::setConfiguredServices" ); @@ -1847,7 +1830,6 @@ uno::Sequence< OUString > SAL_CALL LngSvcMgr::getConfiguredServices( const OUString& rServiceName, const lang::Locale& rLocale ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1913,7 +1895,6 @@ uno::Sequence< OUString > SAL_CALL void SAL_CALL LngSvcMgr::dispose() - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1934,7 +1915,6 @@ void SAL_CALL void SAL_CALL LngSvcMgr::addEventListener( const uno::Reference< lang::XEventListener >& xListener ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1948,7 +1928,6 @@ void SAL_CALL void SAL_CALL LngSvcMgr::removeEventListener( const uno::Reference< lang::XEventListener >& xListener ) - throw(uno::RuntimeException, std::exception) { osl::MutexGuard aGuard( GetLinguMutex() ); @@ -1975,7 +1954,6 @@ bool LngSvcMgr::AddLngSvcEvtBroadcaster( OUString SAL_CALL LngSvcMgr::getImplementationName() - throw(uno::RuntimeException, std::exception) { return getImplementationName_Static(); } @@ -1983,7 +1961,6 @@ OUString SAL_CALL sal_Bool SAL_CALL LngSvcMgr::supportsService( const OUString& ServiceName ) - throw(uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } @@ -1991,7 +1968,6 @@ sal_Bool SAL_CALL uno::Sequence< OUString > SAL_CALL LngSvcMgr::getSupportedServiceNames() - throw(uno::RuntimeException, std::exception) { return getSupportedServiceNames_Static(); } @@ -2007,7 +1983,6 @@ uno::Sequence< OUString > LngSvcMgr::getSupportedServiceNames_Static() /// @throws uno::Exception uno::Reference< uno::XInterface > SAL_CALL LngSvcMgr_CreateInstance( const uno::Reference< lang::XMultiServiceFactory > & /*rSMgr*/ ) - throw(uno::Exception, std::exception) { uno::Reference< uno::XInterface > xService = static_cast<cppu::OWeakObject*>(new LngSvcMgr); return xService; |