From 0321ebad5645866a244cea0fa16cb00b9c49eace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 12 Feb 2014 10:10:16 +0000 Subject: [PATCH] coverity#738405 Uncaught exception Change-Id: Id6a851ec0799e2064b4b20c4a5dcefa4d5b81ee1 --- sw/source/ui/inc/unotxvw.hxx | 4 +++- sw/source/ui/uno/unotxvw.cxx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index 630368f43a4f..eb3e7bb4e51a 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -190,7 +190,9 @@ public: //XPageCursor virtual sal_Bool SAL_CALL jumpToFirstPage(void) throw( ::com::sun::star::uno::RuntimeException ); - virtual sal_Bool SAL_CALL jumpToLastPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL jumpToLastPage() + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual sal_Bool SAL_CALL jumpToPage(sal_Int16 nPage) throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Bool SAL_CALL jumpToNextPage(void) throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException ); diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 163ead774455..394940734e5d 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1228,7 +1228,8 @@ sal_Bool SwXTextViewCursor::jumpToFirstPage(void) throw( uno::RuntimeException ) return bRet; } -sal_Bool SwXTextViewCursor::jumpToLastPage(void) throw( uno::RuntimeException ) +sal_Bool SwXTextViewCursor::jumpToLastPage() + throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Bool bRet = sal_False;