From 420ca6138c2bc56fcb98262c48b4bf2822cd73cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 27 Jan 2014 20:04:13 +0000 Subject: [PATCH] coverity#706219 Uncaught exception Change-Id: I1c2566337347679453bee46a78a4a0ecd7fdd2fb --- .../extended/accessibleiconchoicectrlentry.hxx | 8 ++++++-- .../source/extended/accessibleiconchoicectrlentry.cxx | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/accessibility/inc/accessibility/extended/accessibleiconchoicectrlentry.hxx b/accessibility/inc/accessibility/extended/accessibleiconchoicectrlentry.hxx index b0108d532008..19b005175465 100644 --- a/accessibility/inc/accessibility/extended/accessibleiconchoicectrlentry.hxx +++ b/accessibility/inc/accessibility/extended/accessibleiconchoicectrlentry.hxx @@ -79,8 +79,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 ); protected: diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index 2217d828c100..437dc4856d71 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -149,7 +149,8 @@ throw(RuntimeException) return bShowing; } // ----------------------------------------------------------------------------- - Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox() throw ( lang::DisposedException ) + Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox() + throw (lang::DisposedException, uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); @@ -158,7 +159,8 @@ throw(RuntimeException) return GetBoundingBox_Impl(); } // ----------------------------------------------------------------------------- - Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen() throw ( lang::DisposedException ) + Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen() + throw (lang::DisposedException, uno::RuntimeException) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex );