summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 10:10:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 10:45:21 +0000
commitaead10d26fc34ce541f629e95327abf548e780c9 (patch)
tree603dbe4e86050a537e3b16f7d84c90b78029a98e
parentf2e81e5803ecc487e83669fe2d3eb14558b9cb37 (diff)
coverity#737625 Uncaught exception
Change-Id: Ic90165af0fb52d40b46ec0ccdb2df9db15a130b5
-rw-r--r--sc/inc/linkuno.hxx3
-rw-r--r--sc/source/ui/unoobj/linkuno.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/sc/inc/linkuno.hxx b/sc/inc/linkuno.hxx
index 2ccc3620ac95..ee29a6c6cef7 100644
--- a/sc/inc/linkuno.hxx
+++ b/sc/inc/linkuno.hxx
@@ -88,7 +88,8 @@ public:
virtual void SAL_CALL refresh() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addRefreshListener( const ::com::sun::star::uno::Reference<
::com::sun::star::util::XRefreshListener >& l )
- throw(::com::sun::star::uno::RuntimeException);
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL removeRefreshListener( const ::com::sun::star::uno::Reference<
::com::sun::star::util::XRefreshListener >& l )
throw(::com::sun::star::uno::RuntimeException);
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx
index 4f7b49b72c03..1ebff8cb776b 100644
--- a/sc/source/ui/unoobj/linkuno.cxx
+++ b/sc/source/ui/unoobj/linkuno.cxx
@@ -154,8 +154,8 @@ void SAL_CALL ScSheetLinkObj::refresh() throw(uno::RuntimeException)
}
void SAL_CALL ScSheetLinkObj::addRefreshListener(
- const uno::Reference<util::XRefreshListener >& xListener )
- throw(uno::RuntimeException)
+ const uno::Reference<util::XRefreshListener >& xListener )
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<util::XRefreshListener>* pObj =