summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 15:50:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 16:12:22 +0000
commit12f08b699d76821e40d2e8672973239098647c72 (patch)
tree6f6777f05cd2dd8da5604a4990aed3f3db14c624 /sw/source/ui/vba
parent4cc356bfa83810297926a8b2fadd59220204bd45 (diff)
coverity#738459 Uncaught exception
Change-Id: Ibc862bcd8d179c6d3b10844746a70acecadacd7a
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbaselection.cxx3
-rw-r--r--sw/source/ui/vba/vbaselection.hxx4
2 files changed, 5 insertions, 2 deletions
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