summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 10:09:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:54 +0000
commit0fe927672450502cf0047a5ef4ff96edf4ca0c0e (patch)
treee8d617a6fe60a9f47be7ff1ed85e7db965190117 /sw
parent5cd19ed6edad7ca4871f75c32283393a7cfcd810 (diff)
coverity#738409 Uncaught exception
Change-Id: Ide9369142230f1f2732aff1e6242299580eb9e65
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 e0a69d9aca32..630368f43a4f 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -177,7 +177,9 @@ public:
virtual ::com::sun::star::awt::Point SAL_CALL getPosition(void) throw( ::com::sun::star::uno::RuntimeException );
//XTextCursor - neu
- virtual void SAL_CALL collapseToStart( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL collapseToStart()
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL collapseToEnd( ) throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isCollapsed( ) throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, 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 17f62faa08e7..163ead774455 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -938,7 +938,8 @@ awt::Point SwXTextViewCursor::getPosition(void) throw( uno::RuntimeException )
return aRet;
}
-void SwXTextViewCursor::collapseToStart(void) throw( uno::RuntimeException )
+void SwXTextViewCursor::collapseToStart()
+ throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if(m_pView)