diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-13 20:39:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-14 09:21:02 +0100 |
commit | 2d11ddeb7cd3c94b9c7acede816912754465f4ef (patch) | |
tree | d8571afe5f83f3d7941d88fa7b7ebc6b531ce10a | |
parent | coverity#983698 Uncaught exception (diff) | |
download | core-2d11ddeb7cd3c94b9c7acede816912754465f4ef.tar.gz core-2d11ddeb7cd3c94b9c7acede816912754465f4ef.zip |
coverity#707036 Uncaught exception
Change-Id: If4e5fdad7261ba6b92a04e615e28d2b474ad4234
-rw-r--r-- | oovbaapi/ooo/vba/excel/XWorkbook.idl | 2 | ||||
-rw-r--r-- | oovbaapi/ooo/vba/word/XDocument.idl | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworkbook.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworkbook.hxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/oovbaapi/ooo/vba/excel/XWorkbook.idl b/oovbaapi/ooo/vba/excel/XWorkbook.idl index 5f286d5a33d9..9efbf6ce354c 100644 --- a/oovbaapi/ooo/vba/excel/XWorkbook.idl +++ b/oovbaapi/ooo/vba/excel/XWorkbook.idl @@ -44,7 +44,7 @@ interface XWorkbook [attribute] boolean PrecisionAsDisplayed; any Worksheets( [in] any Index ); - any Styles( [in] any Index ); + any Styles( [in] any Index ) raises (com::sun::star::script::BasicErrorException); any Sheets( [in] any Index ); any Windows( [in] any Index ); void ResetColors() raises (com::sun::star::script::BasicErrorException); diff --git a/oovbaapi/ooo/vba/word/XDocument.idl b/oovbaapi/ooo/vba/word/XDocument.idl index dd2751efc699..1dde907ca342 100644 --- a/oovbaapi/ooo/vba/word/XDocument.idl +++ b/oovbaapi/ooo/vba/word/XDocument.idl @@ -42,7 +42,7 @@ interface XDocument : com::sun::star::script::XInvocation any Bookmarks( [in] any Index ); any Variables( [in] any Index ); any Paragraphs( [in] any Index ); - any Styles( [in] any Index ); + any Styles( [in] any Index ) raises (com::sun::star::script::BasicErrorException); any Tables( [in] any Index ); any Fields( [in] any Index ); any Shapes( [in] any Index ); diff --git a/sc/source/ui/vba/vbaworkbook.cxx b/sc/source/ui/vba/vbaworkbook.cxx index a72abd3642f3..1883e29d639b 100644 --- a/sc/source/ui/vba/vbaworkbook.cxx +++ b/sc/source/ui/vba/vbaworkbook.cxx @@ -354,7 +354,7 @@ ScVbaWorkbook::SaveAs( const uno::Any& FileName, const uno::Any& FileFormat, con } css::uno::Any SAL_CALL -ScVbaWorkbook::Styles( const uno::Any& Item ) throw (uno::RuntimeException, std::exception) +ScVbaWorkbook::Styles( const uno::Any& Item ) throw (::script::BasicErrorException, uno::RuntimeException, std::exception) { // quick look and Styles object doesn't seem to have a valid parent // or a least the object browser just shows an object that has no diff --git a/sc/source/ui/vba/vbaworkbook.hxx b/sc/source/ui/vba/vbaworkbook.hxx index bf57680c8cef..61c8bcbb036b 100644 --- a/sc/source/ui/vba/vbaworkbook.hxx +++ b/sc/source/ui/vba/vbaworkbook.hxx @@ -54,7 +54,7 @@ public: virtual void SAL_CALL SaveAs( const css::uno::Any& FileName, const css::uno::Any& FileFormat, const css::uno::Any& Password, const css::uno::Any& WriteResPassword, const css::uno::Any& ReadOnlyRecommended, const css::uno::Any& CreateBackup, const css::uno::Any& AccessMode, const css::uno::Any& ConflictResolution, const css::uno::Any& AddToMru, const css::uno::Any& TextCodepage, const css::uno::Any& TextVisualLayout, const css::uno::Any& Local ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL Names( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual css::uno::Any SAL_CALL Styles( const css::uno::Any& Item ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Any SAL_CALL Styles( const css::uno::Any& Item ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL ResetColors( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Any SAL_CALL Colors( const css::uno::Any& Index ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::sal_Int32 SAL_CALL getFileFormat( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; |