diff options
Diffstat (limited to 'linguistic/source/dlistimp.cxx')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 32 |
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(); } |