summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 10:20:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:56 +0000
commitfef8fb7a8cca7e12ac6c51a41f9bf6246de34e90 (patch)
tree3199f95c29ed833c3404577ab539d892824136e5
parentcoverity#738385 Uncaught exception (diff)
downloadcore-fef8fb7a8cca7e12ac6c51a41f9bf6246de34e90.tar.gz
core-fef8fb7a8cca7e12ac6c51a41f9bf6246de34e90.zip
coverity#738383 Uncaught exception
Change-Id: I70c710fe93aa864c2b1ca15d7ae1c04a158c149d
-rw-r--r--sw/source/ui/inc/unotxvw.hxx4
-rw-r--r--sw/source/ui/uno/unotxvw.cxx3
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;