summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 09:19:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 09:49:01 +0200
commit1cb0b37ad09400138d7c4a5874c02f921e742d37 (patch)
tree952eabf4c88a16971a14723b83ae5da1557e1d85 /animations
parent61b44da9fbf35100ac96896f04dee5b779305d68 (diff)
Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I88c0c4681137022005c3a4c418e91cb17bc17148
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/animcore.cxx8
1 files changed, 4 insertions, 4 deletions
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();