diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 10:28:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 10:45:26 +0000 |
commit | 75864819af18e12afc835d11b7e2ece77ab35827 (patch) | |
tree | 135a8198e6a3ce375cda98e6c5db0a940a4023d5 | |
parent | 62c5c0e36bd00d391e81cc3e13302b3885f54d1b (diff) |
coverity#737772 Uncaught exception
Change-Id: Idbff7a4dd1da93d16f85325ae992efce0b37dfee
-rw-r--r-- | sd/source/ui/framework/factories/ViewShellWrapper.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/inc/framework/ViewShellWrapper.hxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx index 1ff46da11d48..63e10307f448 100644 --- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx +++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx @@ -177,7 +177,8 @@ sal_Bool SAL_CALL ViewShellWrapper::select( const ::com::sun::star::uno::Any& aS return bOk; } -uno::Any SAL_CALL ViewShellWrapper::getSelection() throw(uno::RuntimeException) +uno::Any SAL_CALL ViewShellWrapper::getSelection() + throw (uno::RuntimeException, std::exception) { Any aResult; diff --git a/sd/source/ui/inc/framework/ViewShellWrapper.hxx b/sd/source/ui/inc/framework/ViewShellWrapper.hxx index c279bde1b2d2..e9db2511066c 100644 --- a/sd/source/ui/inc/framework/ViewShellWrapper.hxx +++ b/sd/source/ui/inc/framework/ViewShellWrapper.hxx @@ -102,7 +102,9 @@ public: // XSelectionSupplier virtual sal_Bool SAL_CALL select( const ::com::sun::star::uno::Any& aSelection ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Any SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Any SAL_CALL getSelection() + throw (::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); |