summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-24 11:15:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-24 17:16:36 +0100
commit76e998d7ddaf70ded9a4da4d9988884afb74b1e5 (patch)
tree3fa51d099617406ccc2235f8c148907eeb8df292 /vbahelper
parent66b1b690abe088a5775d89f8b074521b92833792 (diff)
coverity#707474 Uncaught exception
Change-Id: I42b3dd934f7aadd2cd7d71e7e22242b504af8825
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbapictureformat.cxx3
-rw-r--r--vbahelper/source/vbahelper/vbapictureformat.hxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/vbahelper/source/vbahelper/vbapictureformat.cxx b/vbahelper/source/vbahelper/vbapictureformat.cxx
index 4e2d86341670..9ec4ba1dddfd 100644
--- a/vbahelper/source/vbahelper/vbapictureformat.cxx
+++ b/vbahelper/source/vbahelper/vbapictureformat.cxx
@@ -24,7 +24,8 @@ using namespace com::sun::star;
ScVbaPictureFormat::ScVbaPictureFormat( const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext,
uno::Reference< drawing::XShape > xShape )
- throw( lang::IllegalArgumentException ) : ScVbaPictureFormat_BASE( xParent, xContext ), m_xShape( xShape )
+ throw (lang::IllegalArgumentException, uno::RuntimeException)
+ : ScVbaPictureFormat_BASE( xParent, xContext ), m_xShape( xShape )
{
m_xPropertySet.set( m_xShape, uno::UNO_QUERY_THROW );
}
diff --git a/vbahelper/source/vbahelper/vbapictureformat.hxx b/vbahelper/source/vbahelper/vbapictureformat.hxx
index f591f7c35bea..87408a957319 100644
--- a/vbahelper/source/vbahelper/vbapictureformat.hxx
+++ b/vbahelper/source/vbahelper/vbapictureformat.hxx
@@ -37,7 +37,8 @@ protected:
private:
void checkParameterRangeInDouble( double nRange, double nMin, double nMax ) throw (css::uno::RuntimeException);
public:
- ScVbaPictureFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, css::uno::Reference< css::drawing::XShape > xShape ) throw( css::lang::IllegalArgumentException );
+ ScVbaPictureFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, css::uno::Reference< css::drawing::XShape > xShape )
+ throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
// Attributes
virtual double SAL_CALL getBrightness() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;