diff --git a/src/libs/qmuparser/qmuformulabase.cpp b/src/libs/qmuparser/qmuformulabase.cpp index 58b3b9f4e..94c62043d 100644 --- a/src/libs/qmuparser/qmuformulabase.cpp +++ b/src/libs/qmuparser/qmuformulabase.cpp @@ -145,12 +145,9 @@ void QmuFormulaBase::SetSepForEval() void QmuFormulaBase::RemoveAll(QMap &map, const QString &val) { const QList listKeys = map.keys(val);//Take all keys that contain token. - if (listKeys.size() > 0) + for (int i = 0; i < listKeys.size(); ++i) { - for (int i = 0; i < listKeys.size(); ++i) - { - map.remove(listKeys.at(i)); - } + map.remove(listKeys.at(i)); } }