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 /cppuhelper/source/propshlp.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 'cppuhelper/source/propshlp.cxx')
-rw-r--r-- | cppuhelper/source/propshlp.cxx | 44 |
1 files changed, 6 insertions, 38 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index 1ada97639738..bb375dd2a42c 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -79,9 +79,9 @@ public: explicit OPropertySetHelperInfo_Impl( IPropertyArrayHelper & rHelper_ ); // XPropertySetInfo-methods - virtual Sequence< Property > SAL_CALL getProperties() throw(css::uno::RuntimeException, std::exception) override; - virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) throw(css::uno::RuntimeException, std::exception) override; + virtual Sequence< Property > SAL_CALL getProperties() override; + virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) override; + virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) override; }; @@ -97,7 +97,7 @@ OPropertySetHelperInfo_Impl::OPropertySetHelperInfo_Impl( /** * Return the sequence of properties, which are provided through the constructor. */ -Sequence< Property > OPropertySetHelperInfo_Impl::getProperties() throw(css::uno::RuntimeException, std::exception) +Sequence< Property > OPropertySetHelperInfo_Impl::getProperties() { return aInfos; } @@ -105,7 +105,7 @@ Sequence< Property > OPropertySetHelperInfo_Impl::getProperties() throw(css::uno /** * Return the sequence of properties, which are provided through the constructor. */ -Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName ) throw(css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) +Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName ) { Property * pR; pR = static_cast<Property *>(bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(), @@ -121,7 +121,7 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper /** * Return the sequence of properties, which are provided through the constructor. */ -sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName ) throw(css::uno::RuntimeException, std::exception) +sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName ) { Property * pR; pR = static_cast<Property *>(bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(), @@ -207,7 +207,6 @@ OPropertySetHelper2::~OPropertySetHelper2() // XInterface Any OPropertySetHelper::queryInterface( const css::uno::Type & rType ) - throw (RuntimeException, std::exception) { return ::cppu::queryInterface( rType, @@ -217,7 +216,6 @@ Any OPropertySetHelper::queryInterface( const css::uno::Type & rType ) } Any OPropertySetHelper2::queryInterface( const css::uno::Type & rType ) - throw (RuntimeException, std::exception) { Any cnd(cppu::queryInterface(rType, static_cast< XPropertySetOption * >(this))); if ( cnd.hasValue() ) @@ -230,7 +228,6 @@ Any OPropertySetHelper2::queryInterface( const css::uno::Type & rType ) * called from the derivee's XTypeProvider::getTypes implementation */ css::uno::Sequence< css::uno::Type > OPropertySetHelper::getTypes() - throw (RuntimeException) { return css::uno::Sequence<css::uno::Type>({ UnoType<css::beans::XPropertySet>::get(), @@ -261,7 +258,6 @@ Reference < XPropertySetInfo > OPropertySetHelper::createPropertySetInfo( // XPropertySet void OPropertySetHelper::setPropertyValue( const OUString& rPropertyName, const Any& rValue ) - throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) { // get the map table IPropertyArrayHelper & rPH = getInfoHelper(); @@ -274,7 +270,6 @@ void OPropertySetHelper::setPropertyValue( // XPropertySet Any OPropertySetHelper::getPropertyValue( const OUString& rPropertyName ) - throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) { // get the map table IPropertyArrayHelper & rPH = getInfoHelper(); @@ -288,9 +283,6 @@ Any OPropertySetHelper::getPropertyValue( void OPropertySetHelper::addPropertyChangeListener( const OUString& rPropertyName, const Reference < XPropertyChangeListener > & rxListener ) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { MutexGuard aGuard( rBHelper.rMutex ); OSL_ENSURE( !rBHelper.bInDispose, "do not addPropertyChangeListener in the dispose call" ); @@ -336,9 +328,6 @@ void OPropertySetHelper::addPropertyChangeListener( void OPropertySetHelper::removePropertyChangeListener( const OUString& rPropertyName, const Reference < XPropertyChangeListener >& rxListener ) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { MutexGuard aGuard( rBHelper.rMutex ); OSL_ENSURE( !rBHelper.bDisposed, "object is disposed" ); @@ -370,9 +359,6 @@ void OPropertySetHelper::removePropertyChangeListener( void OPropertySetHelper::addVetoableChangeListener( const OUString& rPropertyName, const Reference< XVetoableChangeListener > & rxListener ) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { MutexGuard aGuard( rBHelper.rMutex ); OSL_ENSURE( !rBHelper.bInDispose, "do not addVetoableChangeListener in the dispose call" ); @@ -416,9 +402,6 @@ void OPropertySetHelper::addVetoableChangeListener( void OPropertySetHelper::removeVetoableChangeListener( const OUString& rPropertyName, const Reference < XVetoableChangeListener > & rxListener ) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { MutexGuard aGuard( rBHelper.rMutex ); OSL_ENSURE( !rBHelper.bDisposed, "object is disposed" ); @@ -500,11 +483,6 @@ void OPropertySetHelper::setDependentFastPropertyValue( sal_Int32 i_handle, cons // XFastPropertySet void OPropertySetHelper::setFastPropertyValue( sal_Int32 nHandle, const Any& rValue ) - throw(css::beans::UnknownPropertyException, - css::beans::PropertyVetoException, - css::lang::IllegalArgumentException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { OSL_ENSURE( !rBHelper.bInDispose, "do not setFastPropertyValue in the dispose call" ); OSL_ENSURE( !rBHelper.bDisposed, "object is disposed" ); @@ -570,9 +548,6 @@ void OPropertySetHelper::setFastPropertyValue( sal_Int32 nHandle, const Any& rVa // XFastPropertySet Any OPropertySetHelper::getFastPropertyValue( sal_Int32 nHandle ) - throw(css::beans::UnknownPropertyException, - css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { IPropertyArrayHelper & rInfo = getInfoHelper(); @@ -897,7 +872,6 @@ void OPropertySetHelper::setFastPropertyValues( void OPropertySetHelper::setPropertyValues( const Sequence<OUString>& rPropertyNames, const Sequence<Any>& rValues ) - throw(css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) { sal_Int32 nSeqLen = rPropertyNames.getLength(); std::unique_ptr<sal_Int32[]> pHandles(new sal_Int32[ nSeqLen ]); @@ -911,7 +885,6 @@ void OPropertySetHelper::setPropertyValues( // XMultiPropertySet Sequence<Any> OPropertySetHelper::getPropertyValues( const Sequence<OUString>& rPropertyNames ) - throw(css::uno::RuntimeException, std::exception) { sal_Int32 nSeqLen = rPropertyNames.getLength(); std::unique_ptr<sal_Int32[]> pHandles(new sal_Int32[ nSeqLen ]); @@ -936,7 +909,6 @@ Sequence<Any> OPropertySetHelper::getPropertyValues( const Sequence<OUString>& r void OPropertySetHelper::addPropertiesChangeListener( const Sequence<OUString> & , const Reference < XPropertiesChangeListener > & rListener ) - throw(css::uno::RuntimeException, std::exception) { rBHelper.addListener( cppu::UnoType<decltype(rListener)>::get(), rListener ); } @@ -944,7 +916,6 @@ void OPropertySetHelper::addPropertiesChangeListener( // XMultiPropertySet void OPropertySetHelper::removePropertiesChangeListener( const Reference < XPropertiesChangeListener > & rListener ) - throw(css::uno::RuntimeException, std::exception) { rBHelper.removeListener( cppu::UnoType<decltype(rListener)>::get(), rListener ); } @@ -953,7 +924,6 @@ void OPropertySetHelper::removePropertiesChangeListener( void OPropertySetHelper::firePropertiesChangeEvent( const Sequence<OUString>& rPropertyNames, const Reference < XPropertiesChangeListener >& rListener ) - throw(css::uno::RuntimeException, std::exception) { sal_Int32 nLen = rPropertyNames.getLength(); std::unique_ptr<sal_Int32[]> pHandles(new sal_Int32[nLen]); @@ -995,7 +965,6 @@ void OPropertySetHelper::firePropertiesChangeEvent( } void OPropertySetHelper2::enableChangeListenerNotification( sal_Bool bEnable ) - throw(css::uno::RuntimeException, std::exception) { m_pReserved->m_bFireEvents = bEnable; } @@ -1111,7 +1080,6 @@ Sequence< Property > OPropertyArrayHelper::getProperties() Property OPropertyArrayHelper::getPropertyByName(const OUString& aPropertyName) - throw (UnknownPropertyException) { Property * pR; pR = static_cast<Property *>(bsearch( &aPropertyName, aInfos.getConstArray(), aInfos.getLength(), |