diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-14 13:01:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-15 11:52:41 +0100 |
commit | e132e781d8b01684d8ef51f060e90d465a21c677 (patch) | |
tree | f18331549fdc95416a748c7792f804a39ab0a30f /sc/source/core | |
parent | 58a2473d6672eb4ae4f55c3fe4c25ea23d932db5 (diff) |
loplugin:simplifybool extend to !(a == b) where comparison an overloaded op
Change-Id: I08fcbe2569c07f5f97269ad861fa6d38f23a7cc7
Reviewed-on: https://gerrit.libreoffice.org/67816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/dpsave.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx index c5c5139ad170..1c2ab97f3a1e 100644 --- a/sc/source/core/data/dpsave.cxx +++ b/sc/source/core/data/dpsave.cxx @@ -254,7 +254,7 @@ bool ScDPSaveDimension::operator== ( const ScDPSaveDimension& r ) const if( pReferenceValue && r.pReferenceValue ) { - if ( !(*pReferenceValue == *r.pReferenceValue) ) + if ( *pReferenceValue != *r.pReferenceValue ) { return false; } @@ -265,7 +265,7 @@ bool ScDPSaveDimension::operator== ( const ScDPSaveDimension& r ) const } if( this->pSortInfo && r.pSortInfo ) { - if ( !(*this->pSortInfo == *r.pSortInfo) ) + if ( *this->pSortInfo != *r.pSortInfo ) { return false; } @@ -276,7 +276,7 @@ bool ScDPSaveDimension::operator== ( const ScDPSaveDimension& r ) const } if( this->pAutoShowInfo && r.pAutoShowInfo ) { - if ( !(*this->pAutoShowInfo == *r.pAutoShowInfo) ) + if ( *this->pAutoShowInfo != *r.pAutoShowInfo ) { return false; } |