coverity#738392 Uncaught exception

Change-Id: I342ab51f99fd589e79bf650befc5506ab04c3fc0
This commit is contained in:
Caolán McNamara
2014-02-12 10:17:07 +00:00
parent 67d8131250
commit 1fd10ae66c
2 changed files with 7 additions and 2 deletions

View File

@@ -88,7 +88,10 @@ public:
//XSelectionSupplier
virtual ::com::sun::star::uno::Any SAL_CALL getSelection(void) throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& aInterface) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL select(const ::com::sun::star::uno::Any& rInterface)
throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException,
std::exception);
virtual void SAL_CALL addSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL removeSelectionChangeListener(const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener > & xListener) throw( ::com::sun::star::uno::RuntimeException );

View File

@@ -226,7 +226,9 @@ uno::Any SAL_CALL SwXTextView::queryInterface( const uno::Type& aType )
return aRet;
}
sal_Bool SwXTextView::select(const uno::Any& aInterface) throw( lang::IllegalArgumentException, uno::RuntimeException )
sal_Bool SwXTextView::select(const uno::Any& aInterface)
throw (lang::IllegalArgumentException, uno::RuntimeException,
std::exception)
{
SolarMutexGuard aGuard;