diff options
Diffstat (limited to 'cppuhelper/source/propertysetmixin.cxx')
-rw-r--r-- | cppuhelper/source/propertysetmixin.cxx | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx index 30aa0b90d822..c6de17a7d23b 100644 --- a/cppuhelper/source/propertysetmixin.cxx +++ b/cppuhelper/source/propertysetmixin.cxx @@ -279,23 +279,18 @@ class Info: public cppu::WeakImplHelper< css::beans::XPropertySetInfo > { public: explicit Info(Data * data): m_data(data) {} - virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() - throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() override; virtual css::beans::Property SAL_CALL getPropertyByName( - rtl::OUString const & name) - throw ( - css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) override; + rtl::OUString const & name) override; - virtual sal_Bool SAL_CALL hasPropertyByName(rtl::OUString const & name) - throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL hasPropertyByName(rtl::OUString const & name) override; private: rtl::Reference< Data > m_data; }; css::uno::Sequence< css::beans::Property > Info::getProperties() - throw (css::uno::RuntimeException, std::exception) { assert(m_data->properties.size() <= SAL_MAX_INT32); css::uno::Sequence< css::beans::Property > s( @@ -313,14 +308,12 @@ css::uno::Sequence< css::beans::Property > Info::getProperties() } css::beans::Property Info::getPropertyByName(rtl::OUString const & name) - throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) { return m_data->get(static_cast< cppu::OWeakObject * >(this), name)-> second.property; } sal_Bool Info::hasPropertyByName(rtl::OUString const & name) - throw (css::uno::RuntimeException, std::exception) { Data::PropertyMap::iterator i(m_data->properties.find(name)); return i != m_data->properties.end() && i->second.present; @@ -954,7 +947,6 @@ void PropertySetMixinImpl::dispose() { } css::uno::Any PropertySetMixinImpl::queryInterface(css::uno::Type const & type) - throw (css::uno::RuntimeException, std::exception) { if (((m_impl->implements & IMPLEMENTS_PROPERTY_SET) != 0 && type == css::beans::XPropertySet::static_type())) @@ -981,17 +973,12 @@ css::uno::Any PropertySetMixinImpl::queryInterface(css::uno::Type const & type) css::uno::Reference< css::beans::XPropertySetInfo > PropertySetMixinImpl::getPropertySetInfo() - throw (css::uno::RuntimeException, std::exception) { return new Info(m_impl); } void PropertySetMixinImpl::setPropertyValue( rtl::OUString const & propertyName, css::uno::Any const & value) - throw ( - css::beans::UnknownPropertyException, css::beans::PropertyVetoException, - css::lang::IllegalArgumentException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { m_impl->setProperty( static_cast< css::beans::XPropertySet * >(this), propertyName, value, @@ -1000,9 +987,6 @@ void PropertySetMixinImpl::setPropertyValue( css::uno::Any PropertySetMixinImpl::getPropertyValue( rtl::OUString const & propertyName) - throw ( - css::beans::UnknownPropertyException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { return m_impl->getProperty( static_cast< css::beans::XPropertySet * >(this), propertyName, nullptr); @@ -1011,9 +995,6 @@ css::uno::Any PropertySetMixinImpl::getPropertyValue( void PropertySetMixinImpl::addPropertyChangeListener( rtl::OUString const & propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const & listener) - throw ( - css::beans::UnknownPropertyException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { css::uno::Reference< css::beans::XPropertyChangeListener >( listener, css::uno::UNO_SET_THROW); // reject NULL listener @@ -1036,9 +1017,6 @@ void PropertySetMixinImpl::addPropertyChangeListener( void PropertySetMixinImpl::removePropertyChangeListener( rtl::OUString const & propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const & listener) - throw ( - css::beans::UnknownPropertyException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { assert(listener.is()); checkUnknown(propertyName); @@ -1056,9 +1034,6 @@ void PropertySetMixinImpl::removePropertyChangeListener( void PropertySetMixinImpl::addVetoableChangeListener( rtl::OUString const & propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const & listener) - throw ( - css::beans::UnknownPropertyException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { css::uno::Reference< css::beans::XVetoableChangeListener >( listener, css::uno::UNO_SET_THROW); // reject NULL listener @@ -1081,9 +1056,6 @@ void PropertySetMixinImpl::addVetoableChangeListener( void PropertySetMixinImpl::removeVetoableChangeListener( rtl::OUString const & propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const & listener) - throw ( - css::beans::UnknownPropertyException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { assert(listener.is()); checkUnknown(propertyName); @@ -1099,10 +1071,6 @@ void PropertySetMixinImpl::removeVetoableChangeListener( void PropertySetMixinImpl::setFastPropertyValue( sal_Int32 handle, css::uno::Any const & value) - throw ( - css::beans::UnknownPropertyException, css::beans::PropertyVetoException, - css::lang::IllegalArgumentException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { m_impl->setProperty( static_cast< css::beans::XPropertySet * >(this), @@ -1112,9 +1080,6 @@ void PropertySetMixinImpl::setFastPropertyValue( } css::uno::Any PropertySetMixinImpl::getFastPropertyValue(sal_Int32 handle) - throw ( - css::beans::UnknownPropertyException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { return m_impl->getProperty( static_cast< css::beans::XPropertySet * >(this), @@ -1125,7 +1090,6 @@ css::uno::Any PropertySetMixinImpl::getFastPropertyValue(sal_Int32 handle) css::uno::Sequence< css::beans::PropertyValue > PropertySetMixinImpl::getPropertyValues() - throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< css::beans::PropertyValue > s( m_impl->handleMap.getLength()); @@ -1152,10 +1116,6 @@ PropertySetMixinImpl::getPropertyValues() void PropertySetMixinImpl::setPropertyValues( css::uno::Sequence< css::beans::PropertyValue > const & props) - throw ( - css::beans::UnknownPropertyException, css::beans::PropertyVetoException, - css::lang::IllegalArgumentException, css::lang::WrappedTargetException, - css::uno::RuntimeException, std::exception) { for (sal_Int32 i = 0; i < props.getLength(); ++i) { if (props[i].Handle != -1 |