diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 10:14:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:55 +0000 |
commit | ec95de6198dc329efe8ad644f075337d22479150 (patch) | |
tree | 81f328b846a023e3d6217fcea35187a93166a420 /sw | |
parent | 70e3691090501df9ee281c875c89cf65df2de24b (diff) |
coverity#738398 Uncaught exception
Change-Id: I51d0c9feaf34482382451d77ce39eec84d10f01f
Diffstat (limited to 'sw')
-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 7a871e4c4742..5afc45c46938 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -183,7 +183,9 @@ public: virtual void SAL_CALL collapseToEnd() throw (::com::sun::star::uno::RuntimeException, std::exception); - virtual sal_Bool SAL_CALL isCollapsed( ) throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL isCollapsed() + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL gotoStart( sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException); diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 786d151856bd..2130b7166459 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -986,7 +986,8 @@ void SwXTextViewCursor::collapseToEnd() throw uno::RuntimeException(); } -sal_Bool SwXTextViewCursor::isCollapsed(void) throw( uno::RuntimeException ) +sal_Bool SwXTextViewCursor::isCollapsed() + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Bool bRet = sal_False; |