summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 13:51:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:45 +0000
commit856ec7313efe971866c65c1e7dfda6ced43f2451 (patch)
tree81b989ff70d6b80b7cc31325a5dfce02eb1bf918
parent7b3db94ac71d9151283678205f56d43aa7dde064 (diff)
coverity#738367 Uncaught exception
Change-Id: I41afb24b6570132164bfc469ec9cb4bcfc0cba2b
-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 ae4d127940f9..551b9c5a9092 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -394,7 +394,10 @@ public:
virtual void SAL_CALL updateLinks( ) throw(css::uno::RuntimeException);
// 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 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,
+ std::exception);
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,
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 3832e9a03736..1af179aa73e7 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -2479,7 +2479,8 @@ static void lcl_SavePrintUIOptionsToDocumentPrintData(
sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
const uno::Any& rSelection,
const uno::Sequence< beans::PropertyValue >& rxOptions )
- throw (IllegalArgumentException, RuntimeException)
+ throw (IllegalArgumentException, RuntimeException,
+ std::exception)
{
SolarMutexGuard aGuard;
if(!IsValid())