summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-29 16:01:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-29 16:41:35 +0000
commit0ca9e0351831b4d877ccb5fc43eb2b6d8b46d822 (patch)
tree9ccf9ee8039cab1f439ea5220509bf6f1ff9a182
parent3784decc976e54f3fafa5c4a11e43f5becee61d4 (diff)
coverity#737693 Uncaught exception
Change-Id: I91f23b9dae37e7b2d79e643f7f99ec31f82c369d
-rw-r--r--sc/inc/styleuno.hxx5
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx4
2 files changed, 6 insertions, 3 deletions
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx
index a3c894553b34..85550f2a9ce4 100644
--- a/sc/inc/styleuno.hxx
+++ b/sc/inc/styleuno.hxx
@@ -133,8 +133,9 @@ public:
::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeByName( const OUString& Name )
throw(::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
// XNameReplace
virtual void SAL_CALL replaceByName( const OUString& aName,
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index 561bd73c9d53..19243ecda3c8 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -718,7 +718,9 @@ void SAL_CALL ScStyleFamilyObj::replaceByName( const OUString& aName, const uno:
void SAL_CALL ScStyleFamilyObj::removeByName( const OUString& aName )
throw(container::NoSuchElementException,
- lang::WrappedTargetException, uno::RuntimeException)
+ lang::WrappedTargetException,
+ uno::RuntimeException,
+ std::exception)
{
SolarMutexGuard aGuard;
bool bFound = false;