From 12f08b699d76821e40d2e8672973239098647c72 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Feb 2014 15:50:24 +0000 Subject: coverity#738459 Uncaught exception Change-Id: Ibc862bcd8d179c6d3b10844746a70acecadacd7a --- sw/source/ui/vba/vbaselection.cxx | 3 ++- sw/source/ui/vba/vbaselection.hxx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sw/source/ui/vba') diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 3a10c07e9749..befe1835af4d 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -1116,7 +1116,8 @@ void SAL_CALL SwVbaSelection::WholeStory( ) throw (uno::RuntimeException) return getRange()->InRange( Range ); } -void SAL_CALL SwVbaSelection::SplitTable( ) throw (uno::RuntimeException) +void SAL_CALL SwVbaSelection::SplitTable() + throw (uno::RuntimeException, std::exception) { if( !IsInTable() ) throw uno::RuntimeException(); diff --git a/sw/source/ui/vba/vbaselection.hxx b/sw/source/ui/vba/vbaselection.hxx index d6a0b74bb4f0..1778c30e2e92 100644 --- a/sw/source/ui/vba/vbaselection.hxx +++ b/sw/source/ui/vba/vbaselection.hxx @@ -100,7 +100,9 @@ public: virtual void SAL_CALL Collapse( const css::uno::Any& Direction ) throw (css::uno::RuntimeException); virtual void SAL_CALL WholeStory( ) throw (css::uno::RuntimeException); virtual ::sal_Bool SAL_CALL InRange( const css::uno::Reference< ::ooo::vba::word::XRange >& Range ) throw (css::uno::RuntimeException); - virtual void SAL_CALL SplitTable( ) throw (css::uno::RuntimeException); + virtual void SAL_CALL SplitTable() + throw (css::uno::RuntimeException, + std::exception); virtual css::uno::Any SAL_CALL Paragraphs( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException); // XHelperInterface -- cgit