diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 15:15:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 16:12:18 +0000 |
commit | 7412cb83094633be85bd86851b9ddd14c46ecb77 (patch) | |
tree | 6e90627b7bf6685a6a1f580afc266399330112a9 | |
parent | 8c91a82e8d5b02b91c4fdfad6d297a55149847f3 (diff) |
coverity#738428 Uncaught exception
Change-Id: I282ecb5b7659d98cfe91b7e89c14e822105a7323
-rw-r--r-- | sw/source/ui/inc/unotxvw.hxx | 6 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxvw.cxx | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index cb4b8ec9983b..ea32a5105f24 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -234,9 +234,9 @@ public: //XViewCursor virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); - virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); -// virtual sal_Bool goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); -// virtual sal_Bool goRight(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand) + throw (::com::sun::star::uno::RuntimeException, + std::exception); //XLineCursor virtual sal_Bool SAL_CALL isAtStartOfLine() diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index c32ee9198208..856713584997 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1632,7 +1632,8 @@ sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) throw( un return bRet; } -sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException ) +sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Bool bRet = sal_False; |