diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 09:33:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 06:59:31 +0100 |
commit | 7a1c21e53fc4733a4bb52282ce0098fcc085ab0e (patch) | |
tree | c1b90f74e1ce9e9f3a852f398890899459189cab /svl | |
parent | c24c32bf71b8e64bd0d36e511f554e1f6c015842 (diff) |
loplugin:simplifybool for negation of comparison operator
Change-Id: Ie56daf560185274754afbc7a09c432b5c2793791
Reviewed-on: https://gerrit.libreoffice.org/45068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/inethist.cxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 4 | ||||
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 3c302e43447b..03f886f39da4 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -242,7 +242,7 @@ void INetURLHistory_Impl::putUrl (const OUString &rUrl) sal_uInt16 nLRU = m_pList[m_aHead.m_nNext].m_nPrev; sal_uInt16 nSI = find (m_pList[nLRU].m_nHash); - if (!(nLRU == m_pHash[nSI].m_nLru)) + if (nLRU != m_pHash[nSI].m_nLru) { // Update LRU chain. nLRU = m_pHash[nSI].m_nLru; diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 70d16c13ccd3..b38c3c317545 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -1689,8 +1689,8 @@ bool SvNumberFormatter::GetPreviewStringGuess( const OUString& sFormatString, if ( !bEnglishFormat ) { - if ( !(nCheckPos == 0) || xTransliteration->isEqual( sFormatString, - pEntry->GetFormatstring() ) ) + if ( nCheckPos != 0 || xTransliteration->isEqual( sFormatString, + pEntry->GetFormatstring() ) ) { // other Format sTmpString = sFormatString; diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index d3e48317f4d0..9a314d40b6aa 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -2368,7 +2368,7 @@ bool SvNumberformat::GetOutputString(double fNumber, { if (::rtl::math::isSignBitSet(fNumber)) { - if (!(fNumber < 0.0)) + if (fNumber >= 0.0) fNumber = -fNumber; // do not display -0.0 } if (fNumber == 0.0) |