diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-23 08:54:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-23 09:40:03 +0100 |
commit | 7062961299eab7b2ba2444871a3faf09265d7662 (patch) | |
tree | ac0fae55b8b726e5c6dfd435e8f01dae8044ca54 /sw | |
parent | 0bab690a4ad883e0872601bc4965bb9c0668fefb (diff) |
coverity#707371 Uncaught exception
Change-Id: I5b1de7ec2060aa4083a07c2ce250b47d798155f7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbadocument.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/vba/vbadocument.hxx | 3 |
2 files changed, 4 insertions, 2 deletions
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; |