diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 13:08:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 14:56:20 +0000 |
commit | beb0a165ec7577c0012b6d183f1046cd7cfb3026 (patch) | |
tree | 48c683bab7939fae2f01bbcf4fd1cf731ba5c712 /forms | |
parent | 3d96b1e0ff935cd5805cea648cd071dd36364310 (diff) |
coverity#737149 Uncaught exception
Change-Id: I34b31a3574e5a21a506c49b4f69f3b8c8fbdcdbd
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/imgprod.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/imgprod.hxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index f2d7273585a0..fe82b06ea2f0 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -207,7 +207,9 @@ ImageProducer::~ImageProducer() // ------------------------------------------------------------ -void ImageProducer::addConsumer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer >& rxConsumer ) throw(::com::sun::star::uno::RuntimeException) +void ImageProducer::addConsumer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer >& rxConsumer ) + throw(::com::sun::star::uno::RuntimeException, + std::exception) { DBG_ASSERT( rxConsumer.is(), "::AddConsumer(...): No consumer referenced!" ); if( rxConsumer.is() ) diff --git a/forms/source/component/imgprod.hxx b/forms/source/component/imgprod.hxx index 4c2f163537e3..8e88ccb36118 100644 --- a/forms/source/component/imgprod.hxx +++ b/forms/source/component/imgprod.hxx @@ -87,7 +87,9 @@ public: void setImage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > & rStmRef ); // ::com::sun::star::awt::XImageProducer - void SAL_CALL addConsumer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer >& rxConsumer ) throw(::com::sun::star::uno::RuntimeException); + void SAL_CALL addConsumer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer >& rxConsumer ) + throw(::com::sun::star::uno::RuntimeException, + std::exception); void SAL_CALL removeConsumer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer >& rxConsumer ) throw(::com::sun::star::uno::RuntimeException); void SAL_CALL startProduction( ) throw(::com::sun::star::uno::RuntimeException); |