summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-23 08:54:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-23 09:40:03 +0100
commit7062961299eab7b2ba2444871a3faf09265d7662 (patch)
treeac0fae55b8b726e5c6dfd435e8f01dae8044ca54
parent0bab690a4ad883e0872601bc4965bb9c0668fefb (diff)
coverity#707371 Uncaught exception
Change-Id: I5b1de7ec2060aa4083a07c2ce250b47d798155f7
-rw-r--r--oovbaapi/ooo/vba/word/XDocument.idl2
-rw-r--r--sw/source/ui/vba/vbadocument.cxx3
-rw-r--r--sw/source/ui/vba/vbadocument.hxx3
3 files changed, 5 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/word/XDocument.idl b/oovbaapi/ooo/vba/word/XDocument.idl
index 6d883c1ecb61..dd2751efc699 100644
--- a/oovbaapi/ooo/vba/word/XDocument.idl
+++ b/oovbaapi/ooo/vba/word/XDocument.idl
@@ -36,7 +36,7 @@ interface XDocument : com::sun::star::script::XInvocation
[attribute] long HyphenationZone;
[attribute] long ConsecutiveHyphensLimit;
- XRange Range( [in] any Start, [in] any End );
+ XRange Range( [in] any Start, [in] any End ) raises (com::sun::star::script::BasicErrorException);
any BuiltInDocumentProperties( [in] any Index );
any CustomDocumentProperties( [in] any Index );
any Bookmarks( [in] any Index );
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx
index 4ae44052a901..75d0aa6cd2cd 100644
--- a/sw/source/ui/vba/vbadocument.cxx
+++ b/sw/source/ui/vba/vbadocument.cxx
@@ -81,7 +81,8 @@ SwVbaDocument::getContent() throw ( uno::RuntimeException, std::exception )
}
uno::Reference< word::XRange > SAL_CALL
-SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd ) throw ( uno::RuntimeException, std::exception )
+SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd )
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
if( !rStart.hasValue() && !rEnd.hasValue() )
return getContent();
diff --git a/sw/source/ui/vba/vbadocument.hxx b/sw/source/ui/vba/vbadocument.hxx
index 0c9b5b0b0777..e27b37771095 100644
--- a/sw/source/ui/vba/vbadocument.hxx
+++ b/sw/source/ui/vba/vbadocument.hxx
@@ -42,7 +42,8 @@ public:
// XDocument
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL getContent() throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range( const css::uno::Any& rStart, const css::uno::Any& rEnd ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
+ virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range( const css::uno::Any& rStart, const css::uno::Any& rEnd )
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL BuiltInDocumentProperties( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL CustomDocumentProperties( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL Bookmarks( const css::uno::Any& rIndex ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;