From fef8fb7a8cca7e12ac6c51a41f9bf6246de34e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 12 Feb 2014 10:20:49 +0000 Subject: [PATCH] coverity#738383 Uncaught exception Change-Id: I70c710fe93aa864c2b1ca15d7ae1c04a158c149d --- sw/source/ui/inc/unotxvw.hxx | 4 +++- sw/source/ui/uno/unotxvw.cxx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index 6d44c3d021c3..61782198a2f4 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -87,7 +87,9 @@ public: virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); //XSelectionSupplier - virtual ::com::sun::star::uno::Any SAL_CALL getSelection(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getSelection() + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& rInterface) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index 76fe50d1c4a9..99c4175db0d2 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -326,7 +326,8 @@ sal_Bool SwXTextView::select(const uno::Any& aInterface) return bRet; } -uno::Any SwXTextView::getSelection(void) throw( uno::RuntimeException ) +uno::Any SwXTextView::getSelection() + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; uno::Reference< uno::XInterface > aRef;