aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp')
-rw-r--r--src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp b/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
index b02c8fef..ee9ee686 100644
--- a/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
+++ b/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
@@ -112,7 +112,7 @@ QStringList CangjieDictionary::searchWords(int secondaryIndex, const DictionaryE
DictionaryEntry::ConstIterator start = data.constBegin();
DictionaryEntry::ConstIterator end = start + length;
DictionaryEntry::ConstIterator rangeStart = std::lower_bound(start, end, (DictionaryWord)secondaryIndex);
- if (rangeStart == end || *rangeStart != secondaryIndex)
+ if (rangeStart == end || *rangeStart != QChar(secondaryIndex))
return QStringList();
// There may be more than one words with the same index; look up words with