diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:28:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:31:01 +0200 |
commit | 9f366a65b8609919a2f834fc62f41839a416e657 (patch) | |
tree | 328fb7cfdf1d9e3f3f0ca2fe7d56f5f2916c024d /slideshow | |
parent | 343397c37609347afb64b1367bcd557b53ffb4cc (diff) |
More loplugin:simplifybool
Change-Id: I5426400b0831a353336451409103ebeb01dcd946
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slide/layermanager.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/slideshow/source/engine/slide/layermanager.cxx b/slideshow/source/engine/slide/layermanager.cxx index 1f3cbd6c69ae..c46b90245276 100644 --- a/slideshow/source/engine/slide/layermanager.cxx +++ b/slideshow/source/engine/slide/layermanager.cxx @@ -811,8 +811,8 @@ namespace slideshow const bool bThisIsBackgroundDetached( pCurrShape->isBackgroundDetached() ); - if( bLastWasBackgroundDetached == true && - bThisIsBackgroundDetached == false ) + if( bLastWasBackgroundDetached && + !bThisIsBackgroundDetached ) { // discontinuity found - current shape needs to // get into a new layer diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index a101eb1a295e..98d74146908f 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -1629,7 +1629,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) OSL_ENSURE( mbMouseVisible, "setProperty(): User paint overrides invisible mouse" ); - if(nSwitchPenMode == true){ + if(nSwitchPenMode){ // Switch to Pen Mode maSwitchPenMode.reset( nSwitchPenMode ); maEventMultiplexer.notifySwitchPenMode(); @@ -1645,7 +1645,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) { OSL_ENSURE( mbMouseVisible, "setProperty(): User paint overrides invisible mouse" ); - if(nSwitchEraserMode == true){ + if(nSwitchEraserMode){ // switch to Eraser mode maSwitchEraserMode.reset( nSwitchEraserMode ); maEventMultiplexer.notifySwitchEraserMode(); |