diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 13:46:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 14:56:22 +0000 |
commit | 7501c432d902735b83c2b57de3ff1cc18dca87ab (patch) | |
tree | 89d009da571348e9f1914ba488829c7e812ee383 /sw | |
parent | 81a2478b8e117d982f39f9d4a339a593471a9570 (diff) |
coverity#738268 Uncaught exception
Change-Id: Ia4ee1370c1b68d93e5e74b452c6fd332df22e545
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unotbl.hxx | 6 | ||||
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx index 8ad00fdd83ac..bc8150778a1b 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -369,7 +369,11 @@ public: //XPropertySet virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) + throw (::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException, + std::exception); virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index c4efb51b9f24..0e9c47da11f2 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -3314,7 +3314,10 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, const uno::An throw uno::RuntimeException(); } -uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) +uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) + throw (beans::UnknownPropertyException, + lang::WrappedTargetException, + uno::RuntimeException) { SolarMutexGuard aGuard; uno::Any aRet; |