summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 15:40:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 16:12:21 +0000
commit544d618c5bef63ca9ffa336f3c4dac1a5030dd34 (patch)
treecbd4d605fbc231daf77e1a20fbef44bf97ba16c1
parent67593fd5107a7445fc983c22daad213268fa781e (diff)
coverity#738447 Uncaught exception
Change-Id: I66d00eb490d30fa08aaa658072b2a12d165be6f7
-rw-r--r--sw/source/ui/inc/unotxvw.hxx4
-rw-r--r--sw/source/ui/uno/unotxvw.cxx2
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx
index b03dc63907b8..56965e1a63bb 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -209,7 +209,9 @@ public:
virtual void SAL_CALL gotoEnd( sal_Bool bExpand )
throw (::com::sun::star::uno::RuntimeException,
std::exception);
- virtual void SAL_CALL gotoRange( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, sal_Bool bExpand ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL gotoRange( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, sal_Bool bExpand )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
//XPageCursor
virtual sal_Bool SAL_CALL jumpToFirstPage()
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index 5e1efb98906a..21c71371bc20 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -1052,7 +1052,7 @@ sal_Bool SwXTextViewCursor::goRight(sal_Int16 nCount, sal_Bool bExpand)
void SwXTextViewCursor::gotoRange(
const uno::Reference< text::XTextRange > & xRange,
sal_Bool bExpand)
- throw(RuntimeException)
+ throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if(m_pView && xRange.is())