summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-04 09:49:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-04 10:48:32 +0100
commitd47678c990681d0cfc7f2c843bb9aedaeb08511a (patch)
treea5fb66ffa498ecf357113688f887bead0c8ad854
parent8de4c7363197c6d4017ff978ff363ff5a75b1bf1 (diff)
coverity#707311 Uncaught exception
Change-Id: Ifdab456cb545e552a2efaed03ff00aeac874d47d
-rw-r--r--offapi/com/sun/star/text/XTextConvert.idl5
-rw-r--r--sw/inc/unotext.hxx1
-rw-r--r--sw/source/core/unocore/unotext.cxx2
3 files changed, 5 insertions, 3 deletions
diff --git a/offapi/com/sun/star/text/XTextConvert.idl b/offapi/com/sun/star/text/XTextConvert.idl
index b707489abcfb..2de810cf503b 100644
--- a/offapi/com/sun/star/text/XTextConvert.idl
+++ b/offapi/com/sun/star/text/XTextConvert.idl
@@ -22,7 +22,7 @@
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/beans/PropertyValues.idl>
#include <com/sun/star/lang/IllegalArgumentException.idl>
-
+#include <com/sun/star/beans/PropertyVetoException,idl>
#include <com/sun/star/beans/UnknownPropertyException.idl>
#include <com/sun/star/text/XTextRange.idl>
#include <com/sun/star/text/XTextContent.idl>
@@ -57,7 +57,8 @@ interface XTextConvert : com::sun::star::uno::XInterface
[in] com::sun::star::text::XTextRange End,
[in] com::sun::star::beans::PropertyValues FrameProperties )
raises( com::sun::star::lang::IllegalArgumentException,
- com::sun::star::beans::UnknownPropertyException );
+ com::sun::star::beans::UnknownPropertyException,
+ com::sun::star::beans::PropertyVetoException );
/** converts the paragraphs marked in TableRanges into a table.
diff --git a/sw/inc/unotext.hxx b/sw/inc/unotext.hxx
index 69490db383c6..4edca63ba1ea 100644
--- a/sw/inc/unotext.hxx
+++ b/sw/inc/unotext.hxx
@@ -284,6 +284,7 @@ public:
::com::sun::star::beans::PropertyValue >& xFrameProperties)
throw (css::lang::IllegalArgumentException,
css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference<
::com::sun::star::text::XTextTable > SAL_CALL
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 029c5960fb0f..b6f3979b4354 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -1525,7 +1525,7 @@ SwXText::convertToTextFrame(
const uno::Reference< text::XTextRange >& xEnd,
const uno::Sequence< beans::PropertyValue >& rFrameProperties)
throw (lang::IllegalArgumentException, beans::UnknownPropertyException,
- uno::RuntimeException, std::exception)
+ beans::PropertyVetoException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;