From 1cb0b37ad09400138d7c4a5874c02f921e742d37 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 May 2015 09:19:03 +0200 Subject: Rephrase comparisons between bool and sal_Bool ...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I88c0c4681137022005c3a4c418e91cb17bc17148 --- animations/source/animcore/animcore.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'animations/source') diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 429c866e84b7..cd67ed06eb42 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -1199,7 +1199,7 @@ sal_Bool SAL_CALL AnimationNode::getAutoReverse() throw (RuntimeException, std:: void SAL_CALL AnimationNode::setAutoReverse( sal_Bool _autoreverse ) throw (RuntimeException, std::exception) { Guard< Mutex > aGuard( maMutex ); - if( _autoreverse != (mbAutoReverse ? 1 : 0) ) + if( bool(_autoreverse) != mbAutoReverse ) { mbAutoReverse = _autoreverse; fireChangeListener(); @@ -1466,7 +1466,7 @@ void SAL_CALL AnimationNode::setAccumulate( sal_Bool _accumulate ) throw (RuntimeException, std::exception) { Guard< Mutex > aGuard( maMutex ); - if( _accumulate != (mbAccumulate ? 1 : 0) ) + if( bool(_accumulate) != mbAccumulate ) { mbAccumulate = _accumulate; fireChangeListener(); @@ -1647,7 +1647,7 @@ sal_Bool SAL_CALL AnimationNode::getDirection() throw (RuntimeException, std::ex void SAL_CALL AnimationNode::setDirection( sal_Bool _direction ) throw (RuntimeException, std::exception) { Guard< Mutex > aGuard( maMutex ); - if( _direction != (mbDirection ? 1 : 0) ) + if( bool(_direction) != mbDirection ) { mbDirection = _direction; fireChangeListener(); @@ -1773,7 +1773,7 @@ sal_Bool SAL_CALL AnimationNode::getMode() throw (RuntimeException, std::excepti void SAL_CALL AnimationNode::setMode( sal_Bool _mode ) throw (RuntimeException, std::exception) { Guard< Mutex > aGuard( maMutex ); - if( _mode != (mbMode ? 1 : 0) ) + if( bool(_mode) != mbMode ) { mbMode = _mode; fireChangeListener(); -- cgit