diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-23 08:58:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-23 09:40:03 +0100 |
commit | 18891c5d7d1a8039241bc07d26538faf524fad72 (patch) | |
tree | d5dece0232db00094062a016782bca2d3abf0e8f /sw/source/ui/vba | |
parent | caa5a3ae55965290b0122e73191de691acf23b3f (diff) |
coverity#707380 Uncaught exception
Change-Id: I630323bb7b371925541f466563562378c339be6e
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r-- | sw/source/ui/vba/vbapanes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbapanes.cxx b/sw/source/ui/vba/vbapanes.cxx index 338fe99161f4..6fdf39d2d64f 100644 --- a/sw/source/ui/vba/vbapanes.cxx +++ b/sw/source/ui/vba/vbapanes.cxx @@ -43,7 +43,7 @@ public: virtual uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE { if( Index != 1 ) - throw container::NoSuchElementException(); + throw lang::IndexOutOfBoundsException(); return uno::makeAny( uno::Reference< word::XPane >( new SwVbaPane( mxParent, mxContext, mxModel ) ) ); } virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE |