diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-14 20:36:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-15 11:56:07 +0100 |
commit | f9c460e34d46559f825b91fbc54755a65e6fabc4 (patch) | |
tree | 0b02b37d4afbff1fa480320ad5601e4da8b23926 /sw/source | |
parent | 85d1bd151cca1572e39019288cb2b7b35fc0bbda (diff) |
coverity#738454 Uncaught exception
Change-Id: I9b344efa1b46a6e7c6b69d3044ef88b4cba826cb
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/vba/vbaheadersfooters.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbaheadersfooters.cxx b/sw/source/ui/vba/vbaheadersfooters.cxx index d46b91407bad..1ecbb91c04fa 100644 --- a/sw/source/ui/vba/vbaheadersfooters.cxx +++ b/sw/source/ui/vba/vbaheadersfooters.cxx @@ -47,7 +47,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 || Index > 3 ) - throw container::NoSuchElementException(); + throw lang::IndexOutOfBoundsException(); return uno::makeAny( uno::Reference< word::XHeaderFooter >( new SwVbaHeaderFooter( mxParent, mxContext, mxModel, mxPageStyleProps, mbHeader, Index ) ) ); } virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE |