summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-24 11:01:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-24 11:10:00 +0100
commitb6804259c5664f1d749717cf270ccb80ddfd2f41 (patch)
tree557bd86efe5ae9107521013f907d4ddefbd04126
parentcc44da64b109ec9b1fe9393a19ac18c57d9e3217 (diff)
coverity#707478 Uncaught exception
Change-Id: Ib967053b7d306d18c69843da39646d69540f081f
-rw-r--r--include/vbahelper/vbashape.hxx3
-rw-r--r--vbahelper/source/vbahelper/vbashape.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/vbahelper/vbashape.hxx b/include/vbahelper/vbashape.hxx
index 1625f36fcc91..3435d430cb6f 100644
--- a/include/vbahelper/vbashape.hxx
+++ b/include/vbahelper/vbashape.hxx
@@ -66,7 +66,8 @@ public:
virtual OUString SAL_CALL getAlternativeText() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setAlternativeText( const OUString& _name ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual double SAL_CALL getHeight() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual void SAL_CALL setHeight( double _height ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual void SAL_CALL setHeight(double _height)
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual double SAL_CALL getWidth() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setWidth( double _width ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual double SAL_CALL getLeft() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index d97b61e7929f..03c611e1012f 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -192,7 +192,8 @@ ScVbaShape::getHeight() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setHeight( double _height ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setHeight(double _height)
+ throw (script::BasicErrorException, uno::RuntimeException, std::exception)
{
m_pShapeHelper->setHeight( _height );
}