diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /sw/source/ui/uno/unomailmerge.cxx | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'sw/source/ui/uno/unomailmerge.cxx')
-rw-r--r-- | sw/source/ui/uno/unomailmerge.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sw/source/ui/uno/unomailmerge.cxx b/sw/source/ui/uno/unomailmerge.cxx index a2dcd068a4c8..7118d19e7033 100644 --- a/sw/source/ui/uno/unomailmerge.cxx +++ b/sw/source/ui/uno/unomailmerge.cxx @@ -201,11 +201,11 @@ namespace ~DelayedFileDeletion( ); // XCloseListener - virtual void SAL_CALL queryClosing( const EventObject& _rSource, sal_Bool _bGetsOwnership ) throw (util::CloseVetoException, RuntimeException); - virtual void SAL_CALL notifyClosing( const EventObject& _rSource ) throw (RuntimeException); + virtual void SAL_CALL queryClosing( const EventObject& _rSource, sal_Bool _bGetsOwnership ) throw (util::CloseVetoException, RuntimeException, std::exception); + virtual void SAL_CALL notifyClosing( const EventObject& _rSource ) throw (RuntimeException, std::exception); // XEventListener - virtual void SAL_CALL disposing( const EventObject& Source ) throw (RuntimeException); + virtual void SAL_CALL disposing( const EventObject& Source ) throw (RuntimeException, std::exception); private: void implTakeOwnership( ); @@ -301,7 +301,7 @@ namespace m_aDeleteTimer.Start( ); } - void SAL_CALL DelayedFileDeletion::queryClosing( const EventObject& , sal_Bool _bGetsOwnership ) throw (util::CloseVetoException, RuntimeException) + void SAL_CALL DelayedFileDeletion::queryClosing( const EventObject& , sal_Bool _bGetsOwnership ) throw (util::CloseVetoException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if ( _bGetsOwnership ) @@ -312,7 +312,7 @@ namespace throw util::CloseVetoException( ); } - void SAL_CALL DelayedFileDeletion::notifyClosing( const EventObject& ) throw (RuntimeException) + void SAL_CALL DelayedFileDeletion::notifyClosing( const EventObject& ) throw (RuntimeException, std::exception) { OSL_FAIL("DelayedFileDeletion::notifyClosing: how this?" ); // this should not happen: @@ -320,7 +320,7 @@ namespace // Or, we ourself close the document, then we should not be a listener anymore } - void SAL_CALL DelayedFileDeletion::disposing( const EventObject& ) throw (RuntimeException) + void SAL_CALL DelayedFileDeletion::disposing( const EventObject& ) throw (RuntimeException, std::exception) { OSL_FAIL("DelayedFileDeletion::disposing: how this?" ); // this should not happen: @@ -821,7 +821,7 @@ uno::Any SAL_CALL SwXMailMerge::execute( return makeAny( sal_True ); } -void SAL_CALL SwXMailMerge::cancel() throw (com::sun::star::uno::RuntimeException) +void SAL_CALL SwXMailMerge::cancel() throw (com::sun::star::uno::RuntimeException, std::exception) { // Cancel may be called from a second thread, so this protects from m_pMgr /// cleanup in the execute function. @@ -859,7 +859,7 @@ void SwXMailMerge::launchEvent( const PropertyChangeEvent &rEvt ) const uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXMailMerge::getPropertySetInfo( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; static Reference< XPropertySetInfo > aRef = pPropSet->getPropertySetInfo(); @@ -868,7 +868,7 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXMailMerge::getPropertySetI void SAL_CALL SwXMailMerge::setPropertyValue( const OUString& rPropertyName, const uno::Any& rValue ) - throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1022,7 +1022,7 @@ void SAL_CALL SwXMailMerge::setPropertyValue( uno::Any SAL_CALL SwXMailMerge::getPropertyValue( const OUString& rPropertyName ) - throw (UnknownPropertyException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1077,7 +1077,7 @@ uno::Any SAL_CALL SwXMailMerge::getPropertyValue( void SAL_CALL SwXMailMerge::addPropertyChangeListener( const OUString& rPropertyName, const uno::Reference< beans::XPropertyChangeListener >& rListener ) - throw (UnknownPropertyException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!bDisposing && rListener.is()) @@ -1093,7 +1093,7 @@ void SAL_CALL SwXMailMerge::addPropertyChangeListener( void SAL_CALL SwXMailMerge::removePropertyChangeListener( const OUString& rPropertyName, const uno::Reference< beans::XPropertyChangeListener >& rListener ) - throw (UnknownPropertyException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!bDisposing && rListener.is()) @@ -1109,7 +1109,7 @@ void SAL_CALL SwXMailMerge::removePropertyChangeListener( void SAL_CALL SwXMailMerge::addVetoableChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*rListener*/ ) - throw (UnknownPropertyException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { // no vetoable property, thus no support for vetoable change listeners OSL_FAIL("not implemented"); @@ -1118,7 +1118,7 @@ void SAL_CALL SwXMailMerge::addVetoableChangeListener( void SAL_CALL SwXMailMerge::removeVetoableChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*rListener*/ ) - throw (UnknownPropertyException, WrappedTargetException, RuntimeException) + throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { // no vetoable property, thus no support for vetoable change listeners OSL_FAIL("not implemented"); @@ -1126,7 +1126,7 @@ void SAL_CALL SwXMailMerge::removeVetoableChangeListener( void SAL_CALL SwXMailMerge::dispose() - throw(RuntimeException) + throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1143,7 +1143,7 @@ void SAL_CALL SwXMailMerge::dispose() void SAL_CALL SwXMailMerge::addEventListener( const Reference< XEventListener >& rxListener ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!bDisposing && rxListener.is()) @@ -1152,7 +1152,7 @@ void SAL_CALL SwXMailMerge::addEventListener( void SAL_CALL SwXMailMerge::removeEventListener( const Reference< XEventListener >& rxListener ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!bDisposing && rxListener.is()) @@ -1161,7 +1161,7 @@ void SAL_CALL SwXMailMerge::removeEventListener( void SAL_CALL SwXMailMerge::addMailMergeEventListener( const uno::Reference< XMailMergeListener >& rxListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!bDisposing && rxListener.is()) @@ -1170,7 +1170,7 @@ void SAL_CALL SwXMailMerge::addMailMergeEventListener( void SAL_CALL SwXMailMerge::removeMailMergeEventListener( const uno::Reference< XMailMergeListener >& rxListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!bDisposing && rxListener.is()) @@ -1178,20 +1178,20 @@ void SAL_CALL SwXMailMerge::removeMailMergeEventListener( } OUString SAL_CALL SwXMailMerge::getImplementationName() - throw(RuntimeException) + throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return SwXMailMerge_getImplementationName(); } sal_Bool SAL_CALL SwXMailMerge::supportsService( const OUString& rServiceName ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL SwXMailMerge::getSupportedServiceNames() - throw(RuntimeException) + throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return SwXMailMerge_getSupportedServiceNames(); |