diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 10:13:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:55 +0000 |
commit | 70e3691090501df9ee281c875c89cf65df2de24b (patch) | |
tree | 7d929423b324248e192c2b101781a6fdc0436c3d /sw | |
parent | 0e0f99aed411ded56100eb737b083015c2f208f5 (diff) |
coverity#738400 Uncaught exception
Change-Id: I8567bda45c4f1c9d90dbbf69368a74e27b79d9b0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/inc/unotxvw.hxx | 8 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxvw.cxx | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index 626cd1a22789..7a871e4c4742 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -178,9 +178,11 @@ public: //XTextCursor - neu virtual void SAL_CALL collapseToStart() - throw(::com::sun::star::uno::RuntimeException, - std::exception); - virtual void SAL_CALL collapseToEnd( ) throw(::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, + std::exception); + 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 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); diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 3ceecfaecff2..786d151856bd 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -962,7 +962,8 @@ void SwXTextViewCursor::collapseToStart() throw uno::RuntimeException(); } -void SwXTextViewCursor::collapseToEnd(void) throw( uno::RuntimeException ) +void SwXTextViewCursor::collapseToEnd() + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if(m_pView) |