From 49c091be38e8d1eb8278271be6cadbc404c87bf4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 20 Jan 2018 13:12:28 +0200 Subject: [PATCH] Refactoring. --HG-- branch : develop --- src/libs/qmuparser/qmuformulabase.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)); } }