diff options
Diffstat (limited to 'src/linguist/shared/profileevaluator.cpp')
-rw-r--r-- | src/linguist/shared/profileevaluator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/linguist/shared/profileevaluator.cpp b/src/linguist/shared/profileevaluator.cpp index f89ff8eef..77059fa94 100644 --- a/src/linguist/shared/profileevaluator.cpp +++ b/src/linguist/shared/profileevaluator.cpp @@ -219,9 +219,7 @@ void ProFileEvaluator::setCumulative(bool on) void ProFileEvaluator::setExtraVars(const QHash<QString, QStringList> &extraVars) { ProValueMap map; - QHash<QString, QStringList>::const_iterator it = extraVars.constBegin(); - QHash<QString, QStringList>::const_iterator end = extraVars.constEnd(); - for ( ; it != end; ++it) + for (auto it = extraVars.cbegin(), end = extraVars.cend() ; it != end; ++it) map.insert(ProKey(it.key()), ProStringList(it.value())); d->setExtraVars(map); } |