diff options
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/hyphdsp.cxx | 2 | ||||
-rw-r--r-- | linguistic/source/misc.cxx | 2 |
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; |