summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 14:06:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:47 +0000
commitf0d873b7063bfb6bb45ad364bb4bd39b5c6c0c12 (patch)
tree83ddf866a07844a90c5239f73be6db3f1b40cde9 /sw
parente6b2349ff0fc19451b4a8055239bc31ddf863dae (diff)
coverity#738416 Uncaught exception
Change-Id: I94ae558032d16f3000909c266c808d4c187c0e70
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/unotxdoc.hxx3
-rw-r--r--sw/source/ui/inc/unotxvw.hxx4
-rw-r--r--sw/source/ui/uno/unotxvw.cxx3
3 files changed, 7 insertions, 3 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index ef72f2c266ab..cda5439252bc 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -371,7 +371,8 @@ public:
css::beans::PropertyVetoException,
css::lang::IllegalArgumentException,
css::lang::WrappedTargetException,
- css::uno::RuntimeException);
+ css::uno::RuntimeException,
+ std::exception);
virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException);
virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException);
virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException);
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx
index 2d39a055d132..67df9de58705 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -206,7 +206,9 @@ public:
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);
//XPageCursor
- virtual sal_Bool SAL_CALL jumpToFirstPage(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL jumpToFirstPage()
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual sal_Bool SAL_CALL jumpToLastPage()
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 666181552b72..9e89c32940c2 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -1217,7 +1217,8 @@ void SwXTextViewCursor::gotoEnd(sal_Bool bExpand) throw( uno::RuntimeException )
throw uno::RuntimeException();
}
-sal_Bool SwXTextViewCursor::jumpToFirstPage(void) throw( uno::RuntimeException )
+sal_Bool SwXTextViewCursor::jumpToFirstPage()
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;