diff options
Diffstat (limited to 'editeng/source/lookuptree/Trie.cxx')
-rw-r--r-- | editeng/source/lookuptree/Trie.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/lookuptree/Trie.cxx b/editeng/source/lookuptree/Trie.cxx index 4fbc19430bdb..9314069793ac 100644 --- a/editeng/source/lookuptree/Trie.cxx +++ b/editeng/source/lookuptree/Trie.cxx @@ -68,8 +68,8 @@ void TrieNode::markWord() void TrieNode::addNewChild(TrieNode* pChild) { - if (pChild->mCharacter >= sal_Unicode('a') && - pChild->mCharacter <= sal_Unicode('z')) + if (pChild->mCharacter >= 'a' && + pChild->mCharacter <= 'z') { mLatinArray[pChild->mCharacter - sal_Unicode('a')] = pChild; } @@ -81,8 +81,8 @@ void TrieNode::addNewChild(TrieNode* pChild) TrieNode* TrieNode::findChild(sal_Unicode aInputCharacter) { - if (aInputCharacter >= sal_Unicode('a') && - aInputCharacter <= sal_Unicode('z')) + if (aInputCharacter >= 'a' && + aInputCharacter <= 'z') { return mLatinArray[aInputCharacter - sal_Unicode('a')]; } |