summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 11:34:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 13:46:26 +0200
commit6f6f1680ec35b1616c2fc54e5ee8c3b85edf333b (patch)
tree5ec6cfdde2c0c848416155d1d8cab72a3254525e /linguistic
parent8581d880f8aa8c2be15c875db291cebbb42841c7 (diff)
loplugin:simplifybool in hwpfilter..lotuswordpro
Change-Id: Iedfd492c963eb89fe75fdd73cae630e7e1dae119 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95100 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/hyphdsp.cxx2
-rw-r--r--linguistic/source/misc.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 6ede806a526e..4ce8d4aa099d 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -425,7 +425,7 @@ Reference< XHyphenatedWord > SAL_CALL
LangSvcEntries_Hyph *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : nullptr;
bool bWordModified = false;
- if (!pEntry || !(0 <= nIndex && nIndex <= nWordLen - 2))
+ if (!pEntry || 0 > nIndex || nIndex > nWordLen - 2)
{
return nullptr;
}
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 87cdb02721c7..8024a3b34437 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -691,7 +691,7 @@ bool IsNumeric( const OUString &rText )
for(sal_Int32 i = 0; i < nLen; ++i)
{
sal_Unicode cChar = rText[ i ];
- if ( !('0' <= cChar && cChar <= '9') )
+ if ( '0' > cChar || cChar > '9' )
{
bRes = false;
break;