diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 15:30:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 16:12:19 +0000 |
commit | ba6720f633770c833a85392df05ff15bad126afd (patch) | |
tree | 361b5a290c049131782fa1f53aa7d4c2aecf5fb4 | |
parent | 6ee74484e54a6de5d3ac51d0a1e757b92a7ad354 (diff) |
coverity#738434 Uncaught exception
Change-Id: I90f99cb563e65dedfb973aa0c54a7124c699d32b
-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 0ef11ec4f38f..af79d45d60e4 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -219,7 +219,9 @@ public: virtual sal_Bool SAL_CALL jumpToPreviousPage(void) throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Bool SAL_CALL jumpToEndOfPage(void) throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Bool SAL_CALL jumpToStartOfPage(void) throw( ::com::sun::star::uno::RuntimeException ); - virtual sal_Int16 SAL_CALL getPage(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Int16 SAL_CALL getPage() + throw (::com::sun::star::uno::RuntimeException, + std::exception); //XTextRange virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException ); diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 370a86815258..a8e393b67fa6 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1316,7 +1316,8 @@ sal_Bool SwXTextViewCursor::jumpToStartOfPage(void) throw( uno::RuntimeException return bRet; } -sal_Int16 SwXTextViewCursor::getPage(void) throw( uno::RuntimeException ) +sal_Int16 SwXTextViewCursor::getPage() + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Int16 nRet = 0; |