diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-10 12:10:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-10 13:39:18 +0100 |
commit | e0ec561059feced3bf61324cd688c1cbaac9629b (patch) | |
tree | 10bd93f49d6eb8fce37cb5ede92b81f80031b9ee | |
parent | d16cc33b491c9424ee825b1ca36f0dbd8bce16aa (diff) |
coverity#707480 Uncaught exception
Change-Id: I27732316c42face6750ffb7eccc238f66519e4e6
-rw-r--r-- | include/vbahelper/vbashapes.hxx | 3 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbashapes.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/vbahelper/vbashapes.hxx b/include/vbahelper/vbashapes.hxx index 5c6800fb00dd..e67a18d27bc8 100644 --- a/include/vbahelper/vbashapes.hxx +++ b/include/vbahelper/vbashapes.hxx @@ -66,7 +66,8 @@ public: virtual css::uno::Reference< ov::msforms::XShapeRange > SAL_CALL Range( const css::uno::Any& shapes ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // ScVbaCollectionBaseImpl virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) throw (css::uno::RuntimeException) SAL_OVERRIDE; - virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& Index2 ) throw (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; }; #endif // INCLUDED_VBAHELPER_VBASHAPES_HXX diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx index 200fdebea5ff..e23dd07179b0 100644 --- a/vbahelper/source/vbahelper/vbashapes.cxx +++ b/vbahelper/source/vbahelper/vbashapes.cxx @@ -166,7 +166,8 @@ ScVbaShapes::getShapesByArrayIndices( const uno::Any& Index ) throw (uno::Runti } uno::Any SAL_CALL -ScVbaShapes::Item( const uno::Any& Index, const uno::Any& Index2 ) throw (uno::RuntimeException) +ScVbaShapes::Item(const uno::Any& Index, const uno::Any& Index2) + throw (lang::IndexOutOfBoundsException, script::BasicErrorException, uno::RuntimeException) { // I don't think we need to support Array of indices for shapes /* |