summaryrefslogtreecommitdiff
path: root/linguistic/source/dlistimp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /linguistic/source/dlistimp.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (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/dlistimp.cxx')
-rw-r--r--linguistic/source/dlistimp.cxx32
1 files changed, 7 insertions, 25 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index 3780d4eccc27..05b6c81ee741 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -79,13 +79,11 @@ public:
// XEventListener
virtual void SAL_CALL
- disposing( const EventObject& rSource )
- throw(RuntimeException, std::exception) override;
+ disposing( const EventObject& rSource ) override;
// XDictionaryEventListener
virtual void SAL_CALL
- processDictionaryEvent( const DictionaryEvent& rDicEvent )
- throw(RuntimeException, std::exception) override;
+ processDictionaryEvent( const DictionaryEvent& rDicEvent ) override;
// non-UNO functions
void DisposeAndClear( const EventObject &rEvtObj );
@@ -126,7 +124,6 @@ void DicEvtListenerHelper::DisposeAndClear( const EventObject &rEvtObj )
void SAL_CALL DicEvtListenerHelper::disposing( const EventObject& rSource )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -149,7 +146,6 @@ void SAL_CALL DicEvtListenerHelper::disposing( const EventObject& rSource )
void SAL_CALL DicEvtListenerHelper::processDictionaryEvent(
const DictionaryEvent& rDicEvent )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -370,13 +366,12 @@ sal_Int32 DicList::GetDicPos(const uno::Reference< XDictionary > &xDic)
/// @throws Exception
uno::Reference< XInterface > SAL_CALL
DicList_CreateInstance( const uno::Reference< XMultiServiceFactory > & /*rSMgr*/ )
- throw(Exception)
{
uno::Reference< XInterface > xService = static_cast<cppu::OWeakObject *>(new DicList);
return xService;
}
-sal_Int16 SAL_CALL DicList::getCount() throw(RuntimeException, std::exception)
+sal_Int16 SAL_CALL DicList::getCount()
{
osl::MutexGuard aGuard( GetLinguMutex() );
return static_cast< sal_Int16 >(GetOrCreateDicList().size());
@@ -384,7 +379,6 @@ sal_Int16 SAL_CALL DicList::getCount() throw(RuntimeException, std::exception)
uno::Sequence< uno::Reference< XDictionary > > SAL_CALL
DicList::getDictionaries()
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -395,7 +389,6 @@ uno::Sequence< uno::Reference< XDictionary > > SAL_CALL
uno::Reference< XDictionary > SAL_CALL
DicList::getDictionaryByName( const OUString& aDictionaryName )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -417,7 +410,6 @@ uno::Reference< XDictionary > SAL_CALL
sal_Bool SAL_CALL DicList::addDictionary(
const uno::Reference< XDictionary >& xDictionary )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -439,7 +431,6 @@ sal_Bool SAL_CALL DicList::addDictionary(
sal_Bool SAL_CALL
DicList::removeDictionary( const uno::Reference< XDictionary >& xDictionary )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -472,7 +463,6 @@ sal_Bool SAL_CALL
sal_Bool SAL_CALL DicList::addDictionaryListEventListener(
const uno::Reference< XDictionaryListEventListener >& xListener,
sal_Bool bReceiveVerbose )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -492,7 +482,6 @@ sal_Bool SAL_CALL DicList::addDictionaryListEventListener(
sal_Bool SAL_CALL DicList::removeDictionaryListEventListener(
const uno::Reference< XDictionaryListEventListener >& xListener )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -507,19 +496,19 @@ sal_Bool SAL_CALL DicList::removeDictionaryListEventListener(
return bRes;
}
-sal_Int16 SAL_CALL DicList::beginCollectEvents() throw(RuntimeException, std::exception)
+sal_Int16 SAL_CALL DicList::beginCollectEvents()
{
osl::MutexGuard aGuard( GetLinguMutex() );
return mxDicEvtLstnrHelper->BeginCollectEvents();
}
-sal_Int16 SAL_CALL DicList::endCollectEvents() throw(RuntimeException, std::exception)
+sal_Int16 SAL_CALL DicList::endCollectEvents()
{
osl::MutexGuard aGuard( GetLinguMutex() );
return mxDicEvtLstnrHelper->EndCollectEvents();
}
-sal_Int16 SAL_CALL DicList::flushEvents() throw(RuntimeException, std::exception)
+sal_Int16 SAL_CALL DicList::flushEvents()
{
osl::MutexGuard aGuard( GetLinguMutex() );
return mxDicEvtLstnrHelper->FlushEvents();
@@ -528,7 +517,6 @@ sal_Int16 SAL_CALL DicList::flushEvents() throw(RuntimeException, std::exception
uno::Reference< XDictionary > SAL_CALL
DicList::createDictionary( const OUString& rName, const Locale& rLocale,
DictionaryType eDicType, const OUString& rURL )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -541,7 +529,6 @@ uno::Reference< XDictionary > SAL_CALL
uno::Reference< XDictionaryEntry > SAL_CALL
DicList::queryDictionaryEntry( const OUString& rWord, const Locale& rLocale,
sal_Bool bSearchPosDics, sal_Bool bSearchSpellEntry )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
return SearchDicList( this, rWord, LinguLocaleToLanguage( rLocale ),
@@ -551,7 +538,6 @@ uno::Reference< XDictionaryEntry > SAL_CALL
void SAL_CALL
DicList::dispose()
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -599,7 +585,6 @@ void SAL_CALL
void SAL_CALL
DicList::addEventListener( const uno::Reference< XEventListener >& rxListener )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -609,7 +594,6 @@ void SAL_CALL
void SAL_CALL
DicList::removeEventListener( const uno::Reference< XEventListener >& rxListener )
- throw(RuntimeException, std::exception)
{
osl::MutexGuard aGuard( GetLinguMutex() );
@@ -703,20 +687,18 @@ void DicList::SaveDics()
// Service specific part
-OUString SAL_CALL DicList::getImplementationName( ) throw(RuntimeException, std::exception)
+OUString SAL_CALL DicList::getImplementationName( )
{
return getImplementationName_Static();
}
sal_Bool SAL_CALL DicList::supportsService( const OUString& ServiceName )
- throw(RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL DicList::getSupportedServiceNames( )
- throw(RuntimeException, std::exception)
{
return getSupportedServiceNames_Static();
}