summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 10:24:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:57 +0000
commit655514515794d221955c75510b261210a0d4a3ca (patch)
tree9cd8e352a54642a9386037faa105b18c70becf17 /sw
parentbe1fd3b6ac097e6360561f91947e2a0f15900d85 (diff)
coverity#738374 Uncaught exception
Change-Id: I68e317d7f7a419ed5901d745a9477e0d4570db45
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/unotxdoc.hxx5
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx3
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index 53f3c52670dc..3a72a924a584 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -396,7 +396,10 @@ public:
// css::view::XRenderable
virtual sal_Int32 SAL_CALL getRendererCount( const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
- virtual void SAL_CALL render( sal_Int32 nRenderer, const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
+ virtual void SAL_CALL render( sal_Int32 nRenderer, const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions )
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException,
+ std::exception);
// css::xforms::XFormsSupplier
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getXForms( ) throw (css::uno::RuntimeException);
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 77c8a0a88af6..9e3ca6b04ae2 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -2918,7 +2918,8 @@ void SAL_CALL SwXTextDocument::render(
sal_Int32 nRenderer,
const uno::Any& rSelection,
const uno::Sequence< beans::PropertyValue >& rxOptions )
- throw (IllegalArgumentException, RuntimeException)
+ throw (IllegalArgumentException, RuntimeException,
+ std::exception)
{
SolarMutexGuard aGuard;
if(!IsValid())