diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 10:17:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:55 +0000 |
commit | 1fd10ae66c1024e2105c268a04cdce7c6e8c2868 (patch) | |
tree | 87559a3dbca9f01f9dc1c0528faf0974abbf22b0 /sw | |
parent | 67d8131250d88cc67d03bddb0d594e3b0b1f9609 (diff) |
coverity#738392 Uncaught exception
Change-Id: I342ab51f99fd589e79bf650befc5506ab04c3fc0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/inc/unotxvw.hxx | 5 | ||||
-rw-r--r-- | sw/source/ui/uno/unotxvw.cxx | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx index e0695fa03331..29b545d70ba3 100644 --- a/sw/source/ui/inc/unotxvw.hxx +++ b/sw/source/ui/inc/unotxvw.hxx @@ -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 ); diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx index bb2044a82dd8..6a26281469db 100644 --- a/sw/source/ui/uno/unotxvw.cxx +++ b/sw/source/ui/uno/unotxvw.cxx @@ -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; |