summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 13:50:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:45 +0000
commit7b3db94ac71d9151283678205f56d43aa7dde064 (patch)
tree637b57a992dfd57c60aae4b4bca74be1c14180d9
parentd6740ca95eb795992ceb4834b1b36bfdfa2faa4a (diff)
coverity#738360 Uncaught exception
Change-Id: I5f21bf9ba7fb396b209623861cb9f555c3b5d6a1
-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 3a72a924a584..ae4d127940f9 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -395,7 +395,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 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,
+ std::exception);
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,
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 54eed36fb79b..3832e9a03736 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -2652,7 +2652,8 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer(
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())