Kaydet (Commit) c7a6e064 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1132721 fix exception specs

Change-Id: I1c499f8b994d29e265a66f4219d4c3fddb237a89
üst 59fa7439
...@@ -125,7 +125,9 @@ public: ...@@ -125,7 +125,9 @@ public:
throw (::com::sun::star::uno::RuntimeException, throw (::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::IndexOutOfBoundsException); ::com::sun::star::lang::IndexOutOfBoundsException);
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> GetChild (const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape>& xShape) throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> GetChild (const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape>& xShape) throw (::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> GetChildShape (long nIndex) throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> GetChildShape (long nIndex)
throw (::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::uno::RuntimeException);
/** Update the child manager. Take care of a modified set of children /** Update the child manager. Take care of a modified set of children
and modified visible area. This method can optimize the update and modified visible area. This method can optimize the update
......
...@@ -476,7 +476,7 @@ void SAL_CALL ...@@ -476,7 +476,7 @@ void SAL_CALL
//===== XAccessibleGroupPosition ========================================= //===== XAccessibleGroupPosition =========================================
uno::Sequence< sal_Int32 > SAL_CALL uno::Sequence< sal_Int32 > SAL_CALL
AccessibleDrawDocumentView::getGroupPosition( const uno::Any& rAny ) AccessibleDrawDocumentView::getGroupPosition( const uno::Any& rAny )
throw (uno::RuntimeException) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{ {
SolarMutexGuard g; SolarMutexGuard g;
......
...@@ -105,7 +105,8 @@ public: ...@@ -105,7 +105,8 @@ public:
//===== XAccessibleGroupPosition ========================================= //===== XAccessibleGroupPosition =========================================
virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL
getGroupPosition( const ::com::sun::star::uno::Any& rAny ) getGroupPosition( const ::com::sun::star::uno::Any& rAny )
throw (::com::sun::star::uno::RuntimeException); throw (::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::IndexOutOfBoundsException);
virtual OUString SAL_CALL getObjectLink( const ::com::sun::star::uno::Any& accoject ) virtual OUString SAL_CALL getObjectLink( const ::com::sun::star::uno::Any& accoject )
throw (::com::sun::star::uno::RuntimeException, throw (::com::sun::star::uno::RuntimeException,
std::exception); std::exception);
......
...@@ -86,7 +86,8 @@ Reference<XAccessible> ChildrenManager::GetChild (const Reference<drawing::XShap ...@@ -86,7 +86,8 @@ Reference<XAccessible> ChildrenManager::GetChild (const Reference<drawing::XShap
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XShape> ChildrenManager::GetChildShape(long nIndex) ::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); OSL_ASSERT (mpImpl != NULL);
return mpImpl->GetChildShape(nIndex); return mpImpl->GetChildShape(nIndex);
......
...@@ -115,7 +115,8 @@ long ChildrenManagerImpl::GetChildCount (void) const throw () ...@@ -115,7 +115,8 @@ long ChildrenManagerImpl::GetChildCount (void) const throw ()
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XShape> ChildrenManagerImpl::GetChildShape(long nIndex) ::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); uno::Reference<XAccessible> xAcc = GetChild(nIndex);
ChildDescriptorListType::iterator I, aEnd = maVisibleChildren.end(); ChildDescriptorListType::iterator I, aEnd = maVisibleChildren.end();
......
...@@ -121,7 +121,8 @@ public: ...@@ -121,7 +121,8 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XShape> GetChildShape(long nIndex) ::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 /** Return the requested accessible child or throw and
IndexOutOfBoundsException if the given index is invalid. IndexOutOfBoundsException if the given index is invalid.
@param nIndex @param nIndex
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment