diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-24 12:50:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-24 12:53:14 +0000 |
commit | 4e2db965f9d0e07082b302f3e2d771c0009aaa25 (patch) | |
tree | 795cb17ac8dcc3d95aef76c8091f49c2ea6054aa | |
parent | b10fee9d8d3b61579841ee584cc6fcca5869f5e9 (diff) |
coverity#737388 Uncaught exception
Change-Id: I55fd2311d6439a6f8616f9c21fa1e7222efde794
-rw-r--r-- | sc/inc/cellsuno.hxx | 9 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 5368f0839f6b..49d710d2c90f 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -552,10 +552,11 @@ public: // XNameContainer virtual void SAL_CALL insertByName( const OUString& aName, const ::com::sun::star::uno::Any& aElement ) - throw(::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::container::ElementExistException, - ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::container::ElementExistException, + ::com::sun::star::lang::WrappedTargetException, + ::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/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index b3181fba44ea..c55e73f442ae 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -4420,8 +4420,9 @@ static void lcl_RemoveNamedEntry( ScNamedEntryArr_Impl& rNamedEntries, const OUS } void SAL_CALL ScCellRangesObj::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; ScDocShell* pDocSh = GetDocShell(); |