summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-31 15:04:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-02 12:14:49 +0100
commit26cfb09f2dabe65ac3001b0134f10650219e2af9 (patch)
tree20163affefc07200156b9651d5d1444315c7d860 /sc
parent67cba3af55e94debe8eb6392bc8d0b2f00a7a199 (diff)
coverity#706935 Uncaught exception
Change-Id: I0b543ec0b520e1c79ef7b85c679ae1420d089baf
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx2
-rw-r--r--sc/source/ui/vba/vbaaxes.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index 46d9672d2001..8427e143ce51 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -159,7 +159,7 @@ ScVbaAxes::createEnumeration() throw (css::uno::RuntimeException)
}
uno::Any SAL_CALL
-ScVbaAxes::Item( const css::uno::Any& _nType, const css::uno::Any& _oAxisGroup) throw (css::uno::RuntimeException)
+ScVbaAxes::Item( const css::uno::Any& _nType, const css::uno::Any& _oAxisGroup) throw (css::script::BasicErrorException, css::uno::RuntimeException)
{
// #TODO map the possible index combinations to a container::XIndexAccess wrapper impl
// using a vector of valid std::pair maybe?
diff --git a/sc/source/ui/vba/vbaaxes.hxx b/sc/source/ui/vba/vbaaxes.hxx
index a74ce6cc8fd7..70fe59455b6d 100644
--- a/sc/source/ui/vba/vbaaxes.hxx
+++ b/sc/source/ui/vba/vbaaxes.hxx
@@ -32,7 +32,8 @@ public:
// 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;
- css::uno::Any SAL_CALL Item( const css::uno::Any& aIndex, const css::uno::Any& aIndex2 ) throw (css::uno::RuntimeException) SAL_OVERRIDE;
+ // XCollection
+ virtual css::uno::Any SAL_CALL Item( const css::uno::Any& aIndex, const css::uno::Any& aIndex2 ) throw (css::script::BasicErrorException, css::uno::RuntimeException) SAL_OVERRIDE;
virtual css::uno::Any createCollectionObject(const css::uno::Any&) SAL_OVERRIDE;
// XHelperInterface
virtual OUString getServiceImplName() SAL_OVERRIDE;