diff options
Diffstat (limited to 'src/plugins/tcime/3rdparty/tcime/phrasedictionary.cpp')
-rw-r--r-- | src/plugins/tcime/3rdparty/tcime/phrasedictionary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tcime/3rdparty/tcime/phrasedictionary.cpp b/src/plugins/tcime/3rdparty/tcime/phrasedictionary.cpp index cdeaecdd..6bc62d84 100644 --- a/src/plugins/tcime/3rdparty/tcime/phrasedictionary.cpp +++ b/src/plugins/tcime/3rdparty/tcime/phrasedictionary.cpp @@ -47,8 +47,8 @@ QStringList PhraseDictionary::getWords(const QString &input) const const DictionaryEntry &words = dict[0]; - DictionaryEntry::ConstIterator word = qBinaryFind(words, input.at(0)); - if (word == words.constEnd()) + DictionaryEntry::ConstIterator word = std::lower_bound(words.begin(), words.end(), input.at(0)); + if (word == words.constEnd() || *word != input.at(0)) return QStringList(); int index = word - words.constBegin(); |