summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-14 08:42:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-14 09:21:04 +0100
commitc4d33c5f8f9fe55d5891c4fbbf8295b3aad8987f (patch)
treec3ee0c6381ecd5e894c82e746253d1e1bbb33695 /sw/source/ui
parent346419a018dd7f6d7d6945412eda8fa54f3c2271 (diff)
coverity#738457 Uncaught exception
Change-Id: I152f105e7bd363528d9fa4e365d32d12c00b0a44
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/vba/vbarows.cxx2
-rw-r--r--sw/source/ui/vba/vbarows.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx
index aedad5b7ce5a..6b27ccfca33f 100644
--- a/sw/source/ui/vba/vbarows.cxx
+++ b/sw/source/ui/vba/vbarows.cxx
@@ -315,7 +315,7 @@ void SAL_CALL SwVbaRows::Select( ) throw (uno::RuntimeException, std::exception
return ( mnEndRowIndex - mnStartRowIndex + 1 );
}
-uno::Any SAL_CALL SwVbaRows::Item( const uno::Any& Index1, const uno::Any& /*not processed in this base class*/ ) throw (uno::RuntimeException)
+uno::Any SAL_CALL SwVbaRows::Item( const uno::Any& Index1, const uno::Any& /*not processed in this base class*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
sal_Int32 nIndex = 0;
if( ( Index1 >>= nIndex ) )
diff --git a/sw/source/ui/vba/vbarows.hxx b/sw/source/ui/vba/vbarows.hxx
index 6a14a89c1542..80cb70fa3ae7 100644
--- a/sw/source/ui/vba/vbarows.hxx
+++ b/sw/source/ui/vba/vbarows.hxx
@@ -62,7 +62,7 @@ public:
//XCollection
virtual ::sal_Int32 SAL_CALL getCount() throw (css::uno::RuntimeException) SAL_OVERRIDE;
- virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/ ) throw ( css::uno::RuntimeException ) SAL_OVERRIDE;
+ virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/ ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException) SAL_OVERRIDE;
// XEnumerationAccess
virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE;
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) SAL_OVERRIDE;