diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 15:16:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 16:12:18 +0000 |
commit | 5364f4fda2dbc593541005b10434fb2254374da9 (patch) | |
tree | cb5c6176a12a41d8e4256c40907a299069fd9350 | |
parent | 7412cb83094633be85bd86851b9ddd14c46ecb77 (diff) |
coverity#38429 Uncaught exception
Change-Id: Ie4d5e38313156279f77ba17f91aba0bddb0c1478
-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 ea32a5105f24..60089136d9f8 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -222,7 +222,9 @@ public: //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::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(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, + std::exception); virtual OUString SAL_CALL getString(void) throw( ::com::sun::star::uno::RuntimeException ); virtual void SAL_CALL setString(const OUString& aString) throw( ::com::sun::star::uno::RuntimeException ); diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 856713584997..3422c9ec3294 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -1401,7 +1401,8 @@ uno::Reference< text::XTextRange > SwXTextViewCursor::getStart(void) throw( uno return xRet; } -uno::Reference< text::XTextRange > SwXTextViewCursor::getEnd(void) throw( uno::RuntimeException ) +uno::Reference< text::XTextRange > SwXTextViewCursor::getEnd() + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; uno::Reference< text::XTextRange > xRet; |