diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 14:55:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 15:30:27 +0000 |
commit | c7a6e0645acc5bf6d92fda8986410866272bbbd6 (patch) | |
tree | 15c847b924fa99b04dfc57aad6c9cd1cabd67181 /svx | |
parent | 59fa74396ff21c98decaa83be724054e5080a536 (diff) |
coverity#1132721 fix exception specs
Change-Id: I1c499f8b994d29e265a66f4219d4c3fddb237a89
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/ChildrenManager.cxx | 3 | ||||
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 3 | ||||
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.hxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/accessibility/ChildrenManager.cxx b/svx/source/accessibility/ChildrenManager.cxx index 958c08db5446..2a1b854e048d 100644 --- a/svx/source/accessibility/ChildrenManager.cxx +++ b/svx/source/accessibility/ChildrenManager.cxx @@ -86,7 +86,8 @@ Reference<XAccessible> ChildrenManager::GetChild (const Reference<drawing::XShap ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> ChildrenManager::GetChildShape(long nIndex) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, + ::com::sun::star::lang::IndexOutOfBoundsException) { OSL_ASSERT (mpImpl != NULL); return mpImpl->GetChildShape(nIndex); diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index f0ad75ad9df2..89d647e9f9e6 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -115,7 +115,8 @@ long ChildrenManagerImpl::GetChildCount (void) const throw () ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> ChildrenManagerImpl::GetChildShape(long nIndex) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, + ::com::sun::star::lang::IndexOutOfBoundsException) { uno::Reference<XAccessible> xAcc = GetChild(nIndex); ChildDescriptorListType::iterator I, aEnd = maVisibleChildren.end(); diff --git a/svx/source/accessibility/ChildrenManagerImpl.hxx b/svx/source/accessibility/ChildrenManagerImpl.hxx index 525f01d56897..865a7d5ffe02 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.hxx +++ b/svx/source/accessibility/ChildrenManagerImpl.hxx @@ -121,7 +121,8 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> GetChildShape(long nIndex) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, + ::com::sun::star::lang::IndexOutOfBoundsException); /** Return the requested accessible child or throw and IndexOutOfBoundsException if the given index is invalid. @param nIndex |