From 7717150491e73ec61eeb3aa1bc4d86d7e3a7dce1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 12 Feb 2014 10:11:14 +0000 Subject: coverity#738403 Uncaught exception Change-Id: Ie8b6586b29976abddd204ad5150edda13bf27230 --- sw/source/ui/inc/unotxvw.hxx | 4 +++- sw/source/ui/uno/unotxvw.cxx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index eb3e7bb4e51a..af52b7cfdcba 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -221,7 +221,9 @@ public: virtual sal_Bool SAL_CALL isAtStartOfLine() throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual sal_Bool SAL_CALL isAtEndOfLine(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL isAtEndOfLine() + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); virtual void SAL_CALL gotoStartOfLine(sal_Bool bExpand) throw (::com::sun::star::uno::RuntimeException, diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 394940734e5d..4d2251429298 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1648,7 +1648,8 @@ sal_Bool SwXTextViewCursor::isAtStartOfLine() return bRet; } -sal_Bool SwXTextViewCursor::isAtEndOfLine(void) throw( uno::RuntimeException ) +sal_Bool SwXTextViewCursor::isAtEndOfLine() + throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Bool bRet = sal_False; -- cgit