diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-24 15:48:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-24 16:11:02 +0100 |
commit | 64da31ab884ff4a2ceaccfa4adfb2eb62fccdaf6 (patch) | |
tree | e3f267a36b1738b3fdbf4d032fd74a79d1ce20ad | |
parent | b2011604f881936584756d4eada4073c66f15f8a (diff) |
coverity#738462 Uncaught exception
Change-Id: I1450211333d2c04cacc80bc66eb228d5c2e7281d
-rw-r--r-- | oovbaapi/ooo/vba/word/XTabStops.idl | 8 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatabstops.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatabstops.hxx | 5 |
3 files changed, 7 insertions, 8 deletions
diff --git a/oovbaapi/ooo/vba/word/XTabStops.idl b/oovbaapi/ooo/vba/word/XTabStops.idl index 56e0ceb514fb..70c68baaec57 100644 --- a/oovbaapi/ooo/vba/word/XTabStops.idl +++ b/oovbaapi/ooo/vba/word/XTabStops.idl @@ -20,21 +20,17 @@ #define __ooo_vba_word_XTabStops_idl__ #include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/script/BasicErrorException.idl> #include <ooo/vba/XCollection.idl> - - - module ooo { module vba { module word { - - interface XTabStop; interface XTabStops { interface ::ooo::vba::XCollection; - XTabStop Add([in] float Position, [in] any Alignment, [in] any Leader ); + XTabStop Add([in] float Position, [in] any Alignment, [in] any Leader ) raises ( com::sun::star::script::BasicErrorException ); void ClearAll(); }; diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx index e51aac6acd3e..259516fa2d27 100644 --- a/sw/source/ui/vba/vbatabstops.cxx +++ b/sw/source/ui/vba/vbatabstops.cxx @@ -110,7 +110,7 @@ SwVbaTabStops::SwVbaTabStops( const uno::Reference< XHelperInterface >& xParent, { } -uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, const uno::Any& Alignment, const uno::Any& Leader ) throw (uno::RuntimeException, std::exception) +uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, const uno::Any& Alignment, const uno::Any& Leader ) throw (script::BasicErrorException, uno::RuntimeException, std::exception) { sal_Int32 nPosition = Millimeter::getInHundredthsOfOneMillimeter( Position ); diff --git a/sw/source/ui/vba/vbatabstops.hxx b/sw/source/ui/vba/vbatabstops.hxx index f8bd0dd65e89..e1f6692a9893 100644 --- a/sw/source/ui/vba/vbatabstops.hxx +++ b/sw/source/ui/vba/vbatabstops.hxx @@ -38,7 +38,10 @@ public: virtual ~SwVbaTabStops() {} // Methods - virtual css::uno::Reference< ::ooo::vba::word::XTabStop > SAL_CALL Add( float Position, const css::uno::Any& Alignment, const css::uno::Any& Leader ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Reference< ::ooo::vba::word::XTabStop > SAL_CALL Add( float Position, const css::uno::Any& Alignment, const css::uno::Any& Leader ) + throw (css::script::BasicErrorException, + css::uno::RuntimeException, + std::exception) SAL_OVERRIDE; virtual void SAL_CALL ClearAll( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XEnumerationAccess |