diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-31 14:50:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-02 12:14:48 +0100 |
commit | 9ed8e1f19c3d9cffc1052350a5854c3097639874 (patch) | |
tree | ca87aa3918f6c0ed6bd298c04f2175d88eb31991 | |
parent | 62962557bacb6f90c9c23ec787fe83e0b0ea35fa (diff) |
coverity#707409 Uncaught exception
Change-Id: I0f19cd6411c7008a4698fc81fd2ce9c4108ce8eb
-rw-r--r-- | oovbaapi/ooo/vba/word/XView.idl | 7 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaview.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaview.hxx | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/word/XView.idl b/oovbaapi/ooo/vba/word/XView.idl index d33cc7833a4f..788aa3d48e8b 100644 --- a/oovbaapi/ooo/vba/word/XView.idl +++ b/oovbaapi/ooo/vba/word/XView.idl @@ -20,6 +20,7 @@ #define __ooo_vba_word_XView_idl__ #include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/script/BasicErrorException.idl> #include <ooo/vba/XHelperInterface.idl> module ooo { module vba { module word { @@ -28,7 +29,11 @@ interface XView { interface ooo::vba::XHelperInterface; - [attribute] long SeekView; + [attribute] long SeekView + { + set raises ( com::sun::star::script::BasicErrorException ); + }; + [attribute] long SplitSpecial; [attribute] boolean TableGridLines; [attribute] long Type; diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx index 3cf95f492bf0..bca5ca6088f2 100644 --- a/sw/source/ui/vba/vbaview.cxx +++ b/sw/source/ui/vba/vbaview.cxx @@ -115,7 +115,7 @@ SwVbaView::getSeekView() throw (css::uno::RuntimeException, std::exception) } void SAL_CALL -SwVbaView::setSeekView( ::sal_Int32 _seekview ) throw (css::uno::RuntimeException, std::exception) +SwVbaView::setSeekView( ::sal_Int32 _seekview ) throw (css::uno::RuntimeException, css::script::BasicErrorException, std::exception) { // FIXME: save the current cursor position, if the cursor is in the main // document, so we can jump back to this position, if the macro sets diff --git a/sw/source/ui/vba/vbaview.hxx b/sw/source/ui/vba/vbaview.hxx index c2962a894a8e..2074cc838a02 100644 --- a/sw/source/ui/vba/vbaview.hxx +++ b/sw/source/ui/vba/vbaview.hxx @@ -45,7 +45,7 @@ public: // XView virtual ::sal_Int32 SAL_CALL getSeekView() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL setSeekView( ::sal_Int32 _seekview ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setSeekView( ::sal_Int32 _seekview ) throw (css::uno::RuntimeException, css::script::BasicErrorException, std::exception) SAL_OVERRIDE; virtual ::sal_Int32 SAL_CALL getSplitSpecial() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setSplitSpecial( ::sal_Int32 _splitspecial ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL getTableGridLines() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; |