summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-24 11:05:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-24 11:10:00 +0100
commit6b260f17e9ccabe83457f0203efc256441b781dc (patch)
tree86d6a7fda59e468c56680da568b15e4766a62073
parent4d225d3e7f3dbbb463fd0229f3e6403407e34f62 (diff)
coverity#707476 Uncaught exception
Change-Id: I667867d0333d9d82db3218e2645741a2327cd8fe
-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 b4e6f192673b..f389c2953c1e 100644
--- a/include/vbahelper/vbashape.hxx
+++ b/include/vbahelper/vbashape.hxx
@@ -89,7 +89,8 @@ public:
virtual sal_Bool SAL_CALL getLockAnchor() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setLockAnchor( sal_Bool _lockanchor ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual void SAL_CALL setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual void SAL_CALL setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition)
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index 062f5613bb6e..0077ad99137c 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -576,7 +576,8 @@ ScVbaShape::getRelativeHorizontalPosition() throw (uno::RuntimeException, std::e
}
void SAL_CALL
-ScVbaShape::setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (uno::RuntimeException, std::exception)
+ScVbaShape::setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition)
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
sal_Int16 nType = text::RelOrientation::PAGE_FRAME;
switch( _relativehorizontalposition )