summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 10:07:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:53 +0000
commit99ab7e44e4c5511445b3164008860765908f9946 (patch)
tree0dbca9d3ca53f0650da365d79e3aeefb035a40d1 /sw
parente0abe02ed51bb626725643debd6d7134bd40c220 (diff)
coverity#738412 Uncaught exception
Change-Id: Iece48b2b8682b38854ca50f158587f9de050e71f
Diffstat (limited to 'sw')
-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 5d1fbf86a1f7..92e63d4092ab 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -214,7 +214,9 @@ public:
// virtual sal_Bool goRight(sal_Int16 nCount, sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
//XLineCursor
- virtual sal_Bool SAL_CALL isAtStartOfLine(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL isAtStartOfLine()
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual sal_Bool SAL_CALL isAtEndOfLine(void) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL gotoEndOfLine(sal_Bool bExpand) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL gotoStartOfLine(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 68c12b3b2112..5f1a31fa403d 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -1629,7 +1629,8 @@ sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) throw( uno:
return bRet;
}
-sal_Bool SwXTextViewCursor::isAtStartOfLine(void) throw( uno::RuntimeException )
+sal_Bool SwXTextViewCursor::isAtStartOfLine()
+ throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;