coverity#738405 Uncaught exception

Change-Id: Id6a851ec0799e2064b4b20c4a5dcefa4d5b81ee1
This commit is contained in:
Caolán McNamara
2014-02-12 10:10:16 +00:00
parent 0fe9276724
commit 0321ebad56
2 changed files with 5 additions and 2 deletions

View File

@@ -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 );

View File

@@ -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;