Kaydet (Commit) 64da31ab authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#738462 Uncaught exception

Change-Id: I1450211333d2c04cacc80bc66eb228d5c2e7281d
üst b2011604
...@@ -20,21 +20,17 @@ ...@@ -20,21 +20,17 @@
#define __ooo_vba_word_XTabStops_idl__ #define __ooo_vba_word_XTabStops_idl__
#include <com/sun/star/uno/XInterface.idl> #include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/script/BasicErrorException.idl>
#include <ooo/vba/XCollection.idl> #include <ooo/vba/XCollection.idl>
module ooo { module vba { module word { module ooo { module vba { module word {
interface XTabStop; interface XTabStop;
interface XTabStops interface XTabStops
{ {
interface ::ooo::vba::XCollection; 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(); void ClearAll();
}; };
......
...@@ -110,7 +110,7 @@ SwVbaTabStops::SwVbaTabStops( const uno::Reference< XHelperInterface >& xParent, ...@@ -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 ); sal_Int32 nPosition = Millimeter::getInHundredthsOfOneMillimeter( Position );
......
...@@ -38,7 +38,10 @@ public: ...@@ -38,7 +38,10 @@ public:
virtual ~SwVbaTabStops() {} virtual ~SwVbaTabStops() {}
// Methods // 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; virtual void SAL_CALL ClearAll( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEnumerationAccess // XEnumerationAccess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment