aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/hunspell/module/hunspellwordlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/hunspell/module/hunspellwordlist.cpp')
-rw-r--r--src/plugins/hunspell/module/hunspellwordlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/hunspell/module/hunspellwordlist.cpp b/src/plugins/hunspell/module/hunspellwordlist.cpp
index ec55d4d3..6c4a8df0 100644
--- a/src/plugins/hunspell/module/hunspellwordlist.cpp
+++ b/src/plugins/hunspell/module/hunspellwordlist.cpp
@@ -154,8 +154,8 @@ QString HunspellWordList::findWordCompletion(const QString &word)
QString bestMatch;
for (int i = 0, count = _list.size(); i < count; ++i) {
const QString &wordB(_list[i]);
- if (wordB.length() > bestMatch.length() &&
- word.length() < wordB.length() &&
+ if (wordB.size() > bestMatch.size() &&
+ word.size() < wordB.size() &&
wordB.startsWith(word, Qt::CaseInsensitive))
bestMatch = wordB;
}