diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 12:28:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-15 12:29:01 +0200 |
commit | 0e8a40e8b8c883611b6d34e47dc6e33ba60e0f91 (patch) | |
tree | 92e49014bb9b368309c98d85dcfbd2f673e23d54 /forms/source | |
parent | cfc7307a23eed561152c1b016cd0ec22bc7af145 (diff) |
calling IsSet() before Call() on Link<> is unnecessary
the Call() already does a check
Found with:
git grep -A 1 -w 'IsSet()'
| grep -B 1 '.Call('
| grep ':'
| cut -d ':' -f 1
Change-Id: Ia7248f5d62640b75f705e539c3d1183e39c0d847
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/imgprod.cxx | 5 | ||||
-rw-r--r-- | forms/source/richtext/richtextviewport.hxx | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index 04a2c5cb77b3..b2b47b056b03 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -289,7 +289,7 @@ void ImageProducer::startProduction() throw(css::uno::RuntimeException, std::exc // graphic is cleared if a new Stream is set if( ( mpGraphic->GetType() == GRAPHIC_NONE ) || mpGraphic->GetContext() ) { - if ( ImplImportGraphic( *mpGraphic ) && maDoneHdl.IsSet() ) + if ( ImplImportGraphic( *mpGraphic ) ) maDoneHdl.Call( mpGraphic ); } @@ -314,8 +314,7 @@ void ImageProducer::startProduction() throw(css::uno::RuntimeException, std::exc (*iter)->complete( css::awt::ImageStatus::IMAGESTATUS_STATICIMAGEDONE, this ); } - if ( maDoneHdl.IsSet() ) - maDoneHdl.Call( NULL ); + maDoneHdl.Call( NULL ); } } } diff --git a/forms/source/richtext/richtextviewport.hxx b/forms/source/richtext/richtextviewport.hxx index a9a7a46a29ee..25e172e623bc 100644 --- a/forms/source/richtext/richtextviewport.hxx +++ b/forms/source/richtext/richtextviewport.hxx @@ -54,8 +54,7 @@ namespace frm private: inline void implInvalidateAttributes() const { - if ( m_aInvalidationHandler.IsSet() ) - m_aInvalidationHandler.Call( NULL ); + m_aInvalidationHandler.Call( NULL ); } }; |