coverity#706945 Uncaught exception

Change-Id: I1da5edfdfd15ec8205de6467bd6c88dc5596426f
This commit is contained in:
Caolán McNamara
2014-06-13 12:03:52 +01:00
parent 2af58ba716
commit 4a662ef739
2 changed files with 4 additions and 2 deletions

View File

@@ -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 );

View File

@@ -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;