diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 12:42:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 13:49:50 +0100 |
commit | f2829946263fffa830af06c32c1027e9b0962907 (patch) | |
tree | b1d1bb9615d8f6b1d135885414fe1d0b1e14a69c | |
parent | c4415f16fbb68ddd09c61ce3fcdf2c72b0da76a7 (diff) |
coverity#706261 Uncaught exception
Change-Id: Ife4d1e828cc2b52c54e425ec7af533ebdacd0f1e
-rw-r--r-- | chart2/source/inc/OPropertySet.hxx | 3 | ||||
-rw-r--r-- | chart2/source/model/main/Axis.cxx | 2 | ||||
-rw-r--r-- | chart2/source/model/main/Axis.hxx | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/chart2/source/inc/OPropertySet.hxx b/chart2/source/inc/OPropertySet.hxx index 960a40ccbfc0..9fbe44106318 100644 --- a/chart2/source/inc/OPropertySet.hxx +++ b/chart2/source/inc/OPropertySet.hxx @@ -66,7 +66,8 @@ protected: may throw an UnknownPropertyException. */ virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const - throw(::com::sun::star::beans::UnknownPropertyException) = 0; + throw (css::beans::UnknownPropertyException, + css::uno::RuntimeException) = 0; /** The InfoHelper table contains all property names and types of this object. diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index c3c1e65a0dd3..151e658509be 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -591,7 +591,7 @@ void Axis::fireModifyEvent() // ____ OPropertySet ____ uno::Any Axis::GetDefaultValue( sal_Int32 nHandle ) const - throw(beans::UnknownPropertyException) + throw (beans::UnknownPropertyException, uno::RuntimeException) { const tPropertyValueMap& rStaticDefaults = *StaticAxisDefaults::get(); tPropertyValueMap::const_iterator aFound( rStaticDefaults.find( nHandle ) ); diff --git a/chart2/source/model/main/Axis.hxx b/chart2/source/model/main/Axis.hxx index e2e20168797c..e414789c457a 100644 --- a/chart2/source/model/main/Axis.hxx +++ b/chart2/source/model/main/Axis.hxx @@ -77,7 +77,8 @@ protected: // ____ OPropertySet ____ virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const - throw(::com::sun::star::beans::UnknownPropertyException) SAL_OVERRIDE; + throw (css::beans::UnknownPropertyException, + css::uno::RuntimeException) SAL_OVERRIDE; // ____ OPropertySet ____ virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() SAL_OVERRIDE; |