From 97faf80004cc431b4d8ae7922d39c23f9c82f4af Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Feb 2014 10:13:06 +0000 Subject: coverity#737638 Uncaught exception Change-Id: I7d665000d8f20fb1d734f6cd00af64d583b875d3 --- sc/inc/nameuno.hxx | 3 ++- sc/source/ui/unoobj/nameuno.cxx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx index 5d817f71218d..01d42ff5bd10 100644 --- a/sc/inc/nameuno.hxx +++ b/sc/inc/nameuno.hxx @@ -103,7 +103,8 @@ public: /// XNamed virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setName( const OUString& aName ) - throw(::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, + std::exception); /// XCellRangeReferrer virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index 6861276c2293..91768158b141 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -220,7 +220,7 @@ OUString SAL_CALL ScNamedRangeObj::getName() throw(uno::RuntimeException) } void SAL_CALL ScNamedRangeObj::setName( const OUString& aNewName ) - throw(uno::RuntimeException) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; //! adapt formulas ????? -- cgit