summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-24 11:04:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-24 11:10:00 +0100
commit4d225d3e7f3dbbb463fd0229f3e6403407e34f62 (patch)
treea8f8e2ec9da24bfa3de68ff81c515c033f469a3b
parentb6804259c5664f1d749717cf270ccb80ddfd2f41 (diff)
coverity#707477 Uncaught exception
Change-Id: Ie91515b0cd0fcf5a1b3bc7b2d394927dafa851ea
-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 3435d430cb6f..b4e6f192673b 100644
--- a/include/vbahelper/vbashape.hxx
+++ b/include/vbahelper/vbashape.hxx
@@ -69,7 +69,8 @@ public:
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 void SAL_CALL setWidth(double _width)
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual double SAL_CALL getLeft() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setLeft( double _left ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual double SAL_CALL getTop() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index 03c611e1012f..062f5613bb6e 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -205,7 +205,8 @@ ScVbaShape::getWidth() throw (uno::RuntimeException, std::exception)
}
void SAL_CALL
-ScVbaShape::setWidth( double _width ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setWidth(double _width)
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
m_pShapeHelper->setWidth( _width );
}