diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 15:31:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 16:12:19 +0000 |
commit | 24b1935680168773a0b612a581097d87a3d8e55d (patch) | |
tree | a1b57fb09a9f2fa867a43ab48b2c5bbe563314df /sw/source | |
parent | ba6720f633770c833a85392df05ff15bad126afd (diff) |
coverity#738435 Uncaught exception
Change-Id: I8e6c6c79b96f03cc8d3ac93ce0bd1f9208981bfa
Diffstat (limited to 'sw/source')
-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 af79d45d60e4..6906125791f3 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -224,7 +224,9 @@ public: std::exception); //XTextRange - virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL getText() + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getStart(void) throw( ::com::sun::star::uno::RuntimeException ); virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getEnd() throw (::com::sun::star::uno::RuntimeException, diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index a8e393b67fa6..57191b829c63 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1365,7 +1365,8 @@ sal_Bool SwXTextViewCursor::screenUp(void) throw( uno::RuntimeException ) return bRet; } -uno::Reference< text::XText > SwXTextViewCursor::getText(void) throw( uno::RuntimeException ) +uno::Reference< text::XText > SwXTextViewCursor::getText() + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; uno::Reference< text::XText > xRet; |