From caa5a3ae55965290b0122e73191de691acf23b3f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 23 Apr 2014 08:57:13 +0100 Subject: coverity#707379 Uncaught exception Change-Id: Icaf92098dd7c9b9b6094212d62f5209c63d823d8 --- oovbaapi/ooo/vba/word/XOptions.idl | 2 +- sw/source/ui/vba/vbaoptions.cxx | 3 ++- sw/source/ui/vba/vbaoptions.hxx | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/oovbaapi/ooo/vba/word/XOptions.idl b/oovbaapi/ooo/vba/word/XOptions.idl index 158fc6515992..497f7782e323 100644 --- a/oovbaapi/ooo/vba/word/XOptions.idl +++ b/oovbaapi/ooo/vba/word/XOptions.idl @@ -42,7 +42,7 @@ interface XOptions [attribute] boolean AutoFormatApplyLists; [attribute] boolean AutoFormatApplyBulletedLists; - any DefaultFilePath( [in] long Path ); + any DefaultFilePath( [in] long Path ) raises (com::sun::star::script::BasicErrorException); }; }; }; }; diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx index a1e865071011..a2d4591900bb 100644 --- a/sw/source/ui/vba/vbaoptions.cxx +++ b/sw/source/ui/vba/vbaoptions.cxx @@ -39,7 +39,8 @@ SwVbaOptions::~SwVbaOptions() } uno::Any SAL_CALL -SwVbaOptions::DefaultFilePath( sal_Int32 _path ) throw ( uno::RuntimeException, std::exception ) +SwVbaOptions::DefaultFilePath( sal_Int32 _path ) + throw (css::script::BasicErrorException, uno::RuntimeException, std::exception) { switch( _path ) { diff --git a/sw/source/ui/vba/vbaoptions.hxx b/sw/source/ui/vba/vbaoptions.hxx index 77b978060a97..a47ad6d972bc 100644 --- a/sw/source/ui/vba/vbaoptions.hxx +++ b/sw/source/ui/vba/vbaoptions.hxx @@ -65,7 +65,8 @@ public: virtual void SAL_CALL setAutoFormatApplyBulletedLists( sal_Bool _autoformatapplybulletedlists ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // Methods - virtual css::uno::Any SAL_CALL DefaultFilePath( sal_Int32 _path ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + virtual css::uno::Any SAL_CALL DefaultFilePath( sal_Int32 _path ) + throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; //PropListener virtual void setValueEvent( const css::uno::Any& value ) SAL_OVERRIDE; -- cgit