summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 10:21:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 10:45:24 +0000
commitff8d78ff892567523a2a5f6bd8056f5350343fdc (patch)
treeafb7062c3ce5c3596caa1243b556af73ba487add /sc
parent02b9b512f0071c46ae648482e9240a9c4c80d9ac (diff)
coverity#737721 Uncaught exception
Change-Id: Ibc5e4532a451829a6e6113c42d9013017205ba70
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/viewuno.hxx7
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx9
2 files changed, 9 insertions, 7 deletions
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx
index 61762c32cf14..b4402e6b63ca 100644
--- a/sc/inc/viewuno.hxx
+++ b/sc/inc/viewuno.hxx
@@ -271,9 +271,10 @@ public:
virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertyChangeListener >& xListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
+ throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertyChangeListener >& aListener )
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 86f4dd6ce43c..6900a016f78c 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -2011,10 +2011,11 @@ uno::Any SAL_CALL ScTabViewObj::getPropertyValue( const OUString& aPropertyName
}
void SAL_CALL ScTabViewObj::addPropertyChangeListener( const OUString& /* aPropertyName */,
- const uno::Reference<beans::XPropertyChangeListener >& xListener )
- throw(beans::UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException)
+ const uno::Reference<beans::XPropertyChangeListener >& xListener )
+ throw (beans::UnknownPropertyException,
+ lang::WrappedTargetException,
+ uno::RuntimeException,
+ std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<beans::XPropertyChangeListener>* pObj =