diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-05 20:54:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-05 21:11:44 +0100 |
commit | b852bf36d37cd5a6949edbf06fba11a782562549 (patch) | |
tree | 3d9b63383ba7307a09f1d0e9a239349898f27f32 | |
parent | coverity#707406 Uncaught exception (diff) | |
download | core-b852bf36d37cd5a6949edbf06fba11a782562549.tar.gz core-b852bf36d37cd5a6949edbf06fba11a782562549.zip |
coverity#707400 Uncaught exception
Change-Id: I4c68ea7061af04616eda27365b16cfa57200ffbc
-rw-r--r-- | oovbaapi/ooo/vba/word/XSelection.idl | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaselection.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaselection.hxx | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/word/XSelection.idl b/oovbaapi/ooo/vba/word/XSelection.idl index 9fee2cfcfebe..3706acb61f18 100644 --- a/oovbaapi/ooo/vba/word/XSelection.idl +++ b/oovbaapi/ooo/vba/word/XSelection.idl @@ -61,7 +61,7 @@ interface XSelection void InsertParagraphBefore(); void InsertParagraphAfter(); void TypeBackspace(); - XRange GoTo( [in] any What, [in] any Which, [in] any Count, [in] any Name ); + XRange GoTo( [in] any What, [in] any Which, [in] any Count, [in] any Name ) raises (com::sun::star::script::BasicErrorException); any Information( [in] long Type ); void InsertBreak( [in] any Type ); any ShapeRange(); diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 15728fcc85e2..bba8cf7f06c5 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -552,7 +552,8 @@ SwVbaSelection::TypeBackspace() throw ( uno::RuntimeException, std::exception ) dispatchRequests( mxModel,url ); } -uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _what, const uno::Any& _which, const uno::Any& _count, const uno::Any& _name ) throw (uno::RuntimeException, std::exception) +uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _what, const uno::Any& _which, const uno::Any& _count, const uno::Any& _name ) + throw (script::BasicErrorException, uno::RuntimeException, std::exception) { sal_Int32 nWhat = 0; if( !( _what >>= nWhat ) ) diff --git a/sw/source/ui/vba/vbaselection.hxx b/sw/source/ui/vba/vbaselection.hxx index 48eb48a6742e..abe70b36528b 100644 --- a/sw/source/ui/vba/vbaselection.hxx +++ b/sw/source/ui/vba/vbaselection.hxx @@ -76,7 +76,8 @@ public: virtual void SAL_CALL setStyle( const css::uno::Any& _xStyle ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL TypeBackspace() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL GoTo( const css::uno::Any& _what, const css::uno::Any& _which, const css::uno::Any& _count, const css::uno::Any& _name ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL GoTo( const css::uno::Any& _what, const css::uno::Any& _which, const css::uno::Any& _count, const css::uno::Any& _name ) + throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::sal_Int32 SAL_CALL getLanguageID( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setLanguageID( ::sal_Int32 _languageid ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL Information( sal_Int32 _type ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; |