summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-10 12:08:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-10 13:39:18 +0100
commitd16cc33b491c9424ee825b1ca36f0dbd8bce16aa (patch)
tree5b1e23bcf309fdc02164abf768e82b1c0203f1d5 /sw/source/ui
parent160c41759e4b7c3b4cd609ff10d882a5e0ff9c4e (diff)
coverity#707407 Uncaught exception
Change-Id: Ib77be2231878dcb89524e6a5c5c4f1fe30e4e7d8
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/vba/vbastyles.cxx2
-rw-r--r--sw/source/ui/vba/vbastyles.hxx4
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx
index 66cd12c02112..b413b1c4ec3d 100644
--- a/sw/source/ui/vba/vbastyles.cxx
+++ b/sw/source/ui/vba/vbastyles.cxx
@@ -294,7 +294,7 @@ SwVbaStyles::createEnumeration() throw (uno::RuntimeException)
uno::Any SAL_CALL
SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 )
- throw (script::BasicErrorException, uno::RuntimeException)
+ throw (lang::IndexOutOfBoundsException, script::BasicErrorException, uno::RuntimeException)
{
//handle WdBuiltinStyle
sal_Int32 nIndex = 0;
diff --git a/sw/source/ui/vba/vbastyles.hxx b/sw/source/ui/vba/vbastyles.hxx
index 8b1ebc30da27..78b85ab3de26 100644
--- a/sw/source/ui/vba/vbastyles.hxx
+++ b/sw/source/ui/vba/vbastyles.hxx
@@ -31,7 +31,9 @@ public:
SwVbaStyles( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xModel )
throw ( css::script::BasicErrorException, css::uno::RuntimeException );
- virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& Index2 ) throw (css::script::BasicErrorException, css::uno::RuntimeException) SAL_OVERRIDE;
+ virtual css::uno::Any SAL_CALL Item(const css::uno::Any& Index1, const css::uno::Any& Index2)
+ throw (css::lang::IndexOutOfBoundsException, css::script::BasicErrorException,
+ 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;