summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-14 08:41:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-14 09:21:03 +0100
commit346419a018dd7f6d7d6945412eda8fa54f3c2271 (patch)
tree16cd2ac236602afd084175250b446e8cbf20fee3
parentae1a8b38de47b0ceea65896f2be443d265c6f1ae (diff)
coverity#738452 Uncaught exception
Change-Id: I25f63c07103f55066f634fdd99411523425a9de1
-rw-r--r--sw/source/ui/vba/vbacolumns.cxx2
-rw-r--r--sw/source/ui/vba/vbacolumns.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbacolumns.cxx b/sw/source/ui/vba/vbacolumns.cxx
index ac78b08e5531..edf01b0668b4 100644
--- a/sw/source/ui/vba/vbacolumns.cxx
+++ b/sw/source/ui/vba/vbacolumns.cxx
@@ -97,7 +97,7 @@ void SAL_CALL SwVbaColumns::Select( ) throw (uno::RuntimeException, std::except
return ( mnEndColumnIndex - mnStartColumnIndex + 1 );
}
-uno::Any SAL_CALL SwVbaColumns::Item( const uno::Any& Index1, const uno::Any& /*not processed in this base class*/ ) throw (uno::RuntimeException)
+uno::Any SAL_CALL SwVbaColumns::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/vbacolumns.hxx b/sw/source/ui/vba/vbacolumns.hxx
index 74533ade2d97..65f73d5786dc 100644
--- a/sw/source/ui/vba/vbacolumns.hxx
+++ b/sw/source/ui/vba/vbacolumns.hxx
@@ -50,7 +50,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;