From ab4b2e0b566d1ca5f730ef07ab335e4546d78346 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 27 Jan 2014 20:09:02 +0000 Subject: coverity#983594 Uncaught exception Change-Id: Ic49f88b44216a24df8a236b755d22b2537245c5f --- .../inc/accessibility/extended/accessiblelistboxentry.hxx | 8 ++++++-- accessibility/source/extended/accessiblelistboxentry.cxx | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'accessibility') diff --git a/accessibility/inc/accessibility/extended/accessiblelistboxentry.hxx b/accessibility/inc/accessibility/extended/accessiblelistboxentry.hxx index 4eff637f39ab..57c4a8bd609b 100644 --- a/accessibility/inc/accessibility/extended/accessiblelistboxentry.hxx +++ b/accessibility/inc/accessibility/extended/accessiblelistboxentry.hxx @@ -104,8 +104,12 @@ namespace accessibility sal_Bool IsAlive_Impl() const; sal_Bool IsShowing_Impl() const; - Rectangle GetBoundingBox() throw ( ::com::sun::star::lang::DisposedException ); - Rectangle GetBoundingBoxOnScreen() throw ( ::com::sun::star::lang::DisposedException ); + Rectangle GetBoundingBox() + throw (css::lang::DisposedException, + css::uno::RuntimeException); + Rectangle GetBoundingBoxOnScreen() + throw (css::lang::DisposedException, + css::uno::RuntimeException); void EnsureIsAlive() const throw ( ::com::sun::star::lang::DisposedException ); void NotifyAccessibleEvent( sal_Int16 _nEventId, const ::com::sun::star::uno::Any& _aOldValue, const ::com::sun::star::uno::Any& _aNewValue ); diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 98666fdc9590..3d2cefa53dc2 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -163,7 +163,8 @@ namespace accessibility return bShowing; } // ----------------------------------------------------------------------------- - Rectangle AccessibleListBoxEntry::GetBoundingBox() throw ( lang::DisposedException ) + Rectangle AccessibleListBoxEntry::GetBoundingBox() + throw (lang::DisposedException, uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); @@ -172,7 +173,8 @@ namespace accessibility return GetBoundingBox_Impl(); } // ----------------------------------------------------------------------------- - Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen() throw ( lang::DisposedException ) + Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen() + throw (lang::DisposedException, uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); -- cgit