From 856ec7313efe971866c65c1e7dfda6ced43f2451 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Feb 2014 13:51:42 +0000 Subject: coverity#738367 Uncaught exception Change-Id: I41afb24b6570132164bfc469ec9cb4bcfc0cba2b --- sw/inc/unotxdoc.hxx | 5 ++++- sw/source/ui/uno/unotxdoc.cxx | 3 ++- 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()) -- cgit