summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-13 12:28:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-13 12:28:36 +0100
commite2ae9f3e8cb625cd8a1f6c93b665a06672038fb6 (patch)
tree911b3c88abeb4c6437f48464140d224054dfaef9 /sw
parentcoverity#706945 Uncaught exception (diff)
downloadcore-e2ae9f3e8cb625cd8a1f6c93b665a06672038fb6.tar.gz
core-e2ae9f3e8cb625cd8a1f6c93b665a06672038fb6.zip
coverity#707393 Uncaught exception
Change-Id: I89ea074bacf7884fe8b8471cfd208f643326a7e1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/vba/vbarange.cxx3
-rw-r--r--sw/source/ui/vba/vbarange.hxx5
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx
index 73cd909f2073..f34df1583caf 100644
--- a/sw/source/ui/vba/vbarange.cxx
+++ b/sw/source/ui/vba/vbarange.cxx
@@ -168,7 +168,8 @@ SwVbaRange::setText( const OUString& rText ) throw ( uno::RuntimeException, std:
}
// FIXME: test is not pass
-void SAL_CALL SwVbaRange::InsertBreak( const uno::Any& _breakType ) throw (uno::RuntimeException, std::exception)
+void SAL_CALL SwVbaRange::InsertBreak(const uno::Any& _breakType)
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
// default type is wdPageBreak;
sal_Int32 nBreakType = word::WdBreakType::wdPageBreak;
diff --git a/sw/source/ui/vba/vbarange.hxx b/sw/source/ui/vba/vbarange.hxx
index 408c47cd2ed1..33fffd42e7f8 100644
--- a/sw/source/ui/vba/vbarange.hxx
+++ b/sw/source/ui/vba/vbarange.hxx
@@ -66,7 +66,10 @@ public:
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// Methods
- virtual void SAL_CALL InsertBreak( const css::uno::Any& _breakType ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual void SAL_CALL InsertBreak(const css::uno::Any& _breakType)
+ throw (css::script::BasicErrorException,
+ css::uno::RuntimeException,
+ std::exception) SAL_OVERRIDE;
virtual void SAL_CALL Select() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL InsertParagraph() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL InsertParagraphBefore() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;