summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 15:28:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 16:12:19 +0000
commiteaf83bb2089ad9aa82df2b77f69e7a55b7acd44c (patch)
tree5ee02e5bbd86858391726e99b78983522d95a647
parent5364f4fda2dbc593541005b10434fb2254374da9 (diff)
coverity#738431 Uncaught exception
Change-Id: I32aab64372133f3b5cdcad0d5c9952d685be7223
-rw-r--r--sw/source/ui/inc/unotxvw.hxx4
-rw-r--r--sw/source/ui/uno/unotxvw.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx
index 60089136d9f8..b42ec9041958 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -235,7 +235,9 @@ public:
virtual sal_Bool SAL_CALL screenUp(void) throw( ::com::sun::star::uno::RuntimeException );
//XViewCursor
- virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL goDown(sal_Int16 nCount, sal_Bool bExpand)
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual sal_Bool SAL_CALL goUp(sal_Int16 nCount, sal_Bool bExpand)
throw (::com::sun::star::uno::RuntimeException,
std::exception);
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index 3422c9ec3294..63d91aed6557 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -1616,7 +1616,8 @@ Any SwXTextViewCursor::getPropertyDefault( const OUString& rPropertyName )
return aRet;
}
-sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
+sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand)
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;