summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-13 12:03:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-13 12:16:27 +0100
commit4a662ef7390c7f97961e022598359f88a8e3fe44 (patch)
treecd2868bb81499da32ce17c719f87b81584661a49
parent2af58ba716a138ec26970a572134faf2cd29084b (diff)
coverity#706945 Uncaught exception
Change-Id: I1da5edfdfd15ec8205de6467bd6c88dc5596426f
-rw-r--r--sc/source/ui/vba/vbachartobject.cxx4
-rw-r--r--sc/source/ui/vba/vbachartobject.hxx2
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbachartobject.cxx b/sc/source/ui/vba/vbachartobject.cxx
index 413d58247851..863233ed8063 100644
--- a/sc/source/ui/vba/vbachartobject.cxx
+++ b/sc/source/ui/vba/vbachartobject.cxx
@@ -91,7 +91,9 @@ ScVbaChartObject::getName() throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaChartObject::Delete() throw ( css::script::BasicErrorException, std::exception )
+ScVbaChartObject::Delete()
+ throw (css::script::BasicErrorException,
+ css::uno::RuntimeException, std::exception)
{
// parent of this object is sheet
uno::Reference< excel::XWorksheet > xParent( getParent(), uno::UNO_QUERY_THROW );
diff --git a/sc/source/ui/vba/vbachartobject.hxx b/sc/source/ui/vba/vbachartobject.hxx
index e1ebbed1e86d..e79bfaa53b03 100644
--- a/sc/source/ui/vba/vbachartobject.hxx
+++ b/sc/source/ui/vba/vbachartobject.hxx
@@ -54,7 +54,7 @@ public:
virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setName( const OUString& sName ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Reference< ov::excel::XChart > SAL_CALL getChart() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual void SAL_CALL Delete() throw ( css::script::BasicErrorException, std::exception ) SAL_OVERRIDE;
+ virtual void SAL_CALL Delete() throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void Activate() throw ( css::script::BasicErrorException );
// XHelperInterface
virtual OUString getServiceImplName() SAL_OVERRIDE;