summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-24 12:42:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-24 12:53:12 +0000
commit7d2d7b5e5947c570ecc33a8ac0a0b9448e0689ea (patch)
tree8ffd925e7f8946a686f238375b90226c07db6242
parent2e9d267c2ba944d8465849af608f2ee097f5810e (diff)
coverity#737340 Uncaught exception
Change-Id: I1549368658a5918fb16b58b614c2c789be94060e
-rw-r--r--sc/inc/afmtuno.hxx3
-rw-r--r--sc/source/ui/unoobj/afmtuno.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx
index d6a35e5e4ec5..d18102851a01 100644
--- a/sc/inc/afmtuno.hxx
+++ b/sc/inc/afmtuno.hxx
@@ -169,7 +169,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);
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx
index 2e0a87b9a443..cbfbfb7b89b6 100644
--- a/sc/source/ui/unoobj/afmtuno.cxx
+++ b/sc/source/ui/unoobj/afmtuno.cxx
@@ -530,7 +530,7 @@ OUString SAL_CALL ScAutoFormatObj::getName() throw(uno::RuntimeException)
}
void SAL_CALL ScAutoFormatObj::setName( const OUString& aNewName )
- throw(uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString aNewString(aNewName);