summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-14 20:36:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-15 11:56:07 +0100
commitf9c460e34d46559f825b91fbc54755a65e6fabc4 (patch)
tree0b02b37d4afbff1fa480320ad5601e4da8b23926 /sw/source/ui/vba
parent85d1bd151cca1572e39019288cb2b7b35fc0bbda (diff)
coverity#738454 Uncaught exception
Change-Id: I9b344efa1b46a6e7c6b69d3044ef88b4cba826cb
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbaheadersfooters.cxx2
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