From 1af37550cf48e270a6039eafc752d11da46415fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 28 May 2014 16:08:34 +0100 Subject: [PATCH] coverity#738461 Uncaught exception Change-Id: Iecc2653faae6bebd31909139392586fe66a17cb4 --- sw/source/ui/vba/vbaselection.cxx | 3 ++- sw/source/ui/vba/vbaselection.hxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index ccbb4def25fb..036061594560 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -348,7 +348,8 @@ SwVbaSelection::Move( const uno::Any& _unit, const uno::Any& _count, const uno:: } } -void SwVbaSelection::NextCell( sal_Int32 nCount, word::E_DIRECTION eDirection ) throw ( uno::RuntimeException ) +void SwVbaSelection::NextCell(sal_Int32 nCount, word::E_DIRECTION eDirection) + throw (css::script::BasicErrorException, uno::RuntimeException) { uno::Reference< beans::XPropertySet > xCursorProps( mxTextViewCursor, uno::UNO_QUERY_THROW ); uno::Reference< text::XTextTable > xTextTable; diff --git a/sw/source/ui/vba/vbaselection.hxx b/sw/source/ui/vba/vbaselection.hxx index abe70b36528b..9d416a29f669 100644 --- a/sw/source/ui/vba/vbaselection.hxx +++ b/sw/source/ui/vba/vbaselection.hxx @@ -42,7 +42,8 @@ private: private: void Move( const css::uno::Any& _unit, const css::uno::Any& _count, const css::uno::Any& _extend, ooo::vba::word::E_DIRECTION eDirection ) throw (css::uno::RuntimeException); - void NextCell( sal_Int32 nCount, ooo::vba::word::E_DIRECTION eDirection ) throw ( css::uno::RuntimeException ); + void NextCell( sal_Int32 nCount, ooo::vba::word::E_DIRECTION eDirection ) + throw (css::script::BasicErrorException, css::uno::RuntimeException); css::uno::Reference< css::text::XTextRange > GetSelectedRange() throw ( css::uno::RuntimeException ); void GetSelectedCellRange( OUString& sTLName, OUString& sBRName ) throw ( css::uno::RuntimeException ); css::uno::Reference< css::text::XTextTable > GetXTextTable() throw ( css::uno::RuntimeException );