diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-24 12:43:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-24 12:53:13 +0000 |
commit | 4e95a50d8b9a404caa63b0d329d0e43b63a20668 (patch) | |
tree | e6fefe5d2681d359bad52bd57f60375aac777c6a | |
parent | 7d2d7b5e5947c570ecc33a8ac0a0b9448e0689ea (diff) |
coverity#737343 Uncaught exception
Change-Id: I5097c5c98580619d066ea928f1970cc6e7160783
-rw-r--r-- | sc/inc/afmtuno.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/afmtuno.cxx | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx index d18102851a01..d7e993a89048 100644 --- a/sc/inc/afmtuno.hxx +++ b/sc/inc/afmtuno.hxx @@ -75,7 +75,8 @@ public: throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); virtual void SAL_CALL removeByName( const OUString& Name ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx index cbfbfb7b89b6..066a2c4c1bd7 100644 --- a/sc/source/ui/unoobj/afmtuno.cxx +++ b/sc/source/ui/unoobj/afmtuno.cxx @@ -229,8 +229,9 @@ ScAutoFormatObj* ScAutoFormatsObj::GetObjectByName_Impl(const OUString& aName) // container::XNameContainer void SAL_CALL ScAutoFormatsObj::insertByName( const OUString& aName, const uno::Any& aElement ) - throw(lang::IllegalArgumentException, container::ElementExistException, - lang::WrappedTargetException, uno::RuntimeException) + throw (lang::IllegalArgumentException, container::ElementExistException, + lang::WrappedTargetException, uno::RuntimeException, + std::exception) { SolarMutexGuard aGuard; sal_Bool bDone = false; |