aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/spellchecker/libkvispellchecker.cpp
diff options
context:
space:
mode:
authorGravatar IceN9ne2018-05-22 08:37:08 -0400
committerGravatar IceN9ne2018-05-22 08:37:08 -0400
commit5c80922489a68a6ab0786de1cc972291deabe1e0 (patch)
tree13d45b2dddae6f473073b9dcebb5553e79f9a495 /src/modules/spellchecker/libkvispellchecker.cpp
parentAboutDialog: Fix line break for non-SSL builds (diff)
downloadKVIrc-5c80922489a68a6ab0786de1cc972291deabe1e0.tar.gz
KVIrc-5c80922489a68a6ab0786de1cc972291deabe1e0.tar.bz2
KVIrc-5c80922489a68a6ab0786de1cc972291deabe1e0.zip
Remove usages of Q_FOREACH. Fixes #2385
Diffstat (limited to 'src/modules/spellchecker/libkvispellchecker.cpp')
-rw-r--r--src/modules/spellchecker/libkvispellchecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/spellchecker/libkvispellchecker.cpp b/src/modules/spellchecker/libkvispellchecker.cpp
index b02561bca..abb6a52f2 100644
--- a/src/modules/spellchecker/libkvispellchecker.cpp
+++ b/src/modules/spellchecker/libkvispellchecker.cpp
@@ -142,8 +142,7 @@ static bool spellchecker_kvs_suggestions(KviKvsModuleFunctionCall * c)
KviKvsArray * pArray = new KviKvsArray();
- QList<QString> lSuggestions = hAllSuggestions.keys();
- Q_FOREACH(QString szSuggestion, lSuggestions)
+ for(const auto & szSuggestion : hAllSuggestions.keys())
pArray->append(new KviKvsVariant(szSuggestion));
c->returnValue()->setArray(pArray);