diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-29 16:05:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-29 16:41:36 +0000 |
commit | 7f3c538514aeab1f628fdcfaed34c42d5740b11e (patch) | |
tree | b1de949a920ff0d7a4226036fd1d836d6dd0e0db /sc | |
parent | fc94084ad8684481888cf39b331a2e22cfdc8755 (diff) |
coverity#737683 Uncaught exception
Change-Id: I80f2d39ef2578d2f3dfd09e3a7ccf9daaedcb48c
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/styleuno.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index 24926b511f93..bf757ff1ed79 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -239,7 +239,8 @@ public: virtual OUString SAL_CALL getParentStyle() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setParentStyle( const OUString& aParentStyle ) throw(::com::sun::star::container::NoSuchElementException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); // XNamed virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index e0f3d0e1c846..d0e1c338d561 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1057,7 +1057,9 @@ OUString SAL_CALL ScStyleObj::getParentStyle() throw(uno::RuntimeException) } void SAL_CALL ScStyleObj::setParentStyle( const OUString& rParentStyle ) - throw(container::NoSuchElementException, uno::RuntimeException) + throw(container::NoSuchElementException, + uno::RuntimeException, + std::exception) { SolarMutexGuard aGuard; SfxStyleSheetBase* pStyle = GetStyle_Impl(); |