diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 10:10:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:54 +0000 |
commit | 0321ebad5645866a244cea0fa16cb00b9c49eace (patch) | |
tree | df36291cb32680cc294db1a7dcd0c3aeab0b665d | |
parent | 0fe927672450502cf0047a5ef4ff96edf4ca0c0e (diff) |
coverity#738405 Uncaught exception
Change-Id: Id6a851ec0799e2064b4b20c4a5dcefa4d5b81ee1
-rw-r--r-- | sw/source/ui/inc/unotxvw.hxx | 4 | ||||
-rw-r--r-- | 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; |