coverity#738383 Uncaught exception

Change-Id: I70c710fe93aa864c2b1ca15d7ae1c04a158c149d
This commit is contained in:
Caolán McNamara
2014-02-12 10:20:49 +00:00
parent 7a9bdd7992
commit fef8fb7a8c
2 changed files with 5 additions and 2 deletions

View File

@@ -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,

View File

@@ -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;