Refactoring.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-20 13:12:28 +02:00
parent 7dc29c0f00
commit 49c091be38

View File

@ -145,12 +145,9 @@ void QmuFormulaBase::SetSepForEval()
void QmuFormulaBase::RemoveAll(QMap<int, QString> &map, const QString &val) void QmuFormulaBase::RemoveAll(QMap<int, QString> &map, const QString &val)
{ {
const QList<int> listKeys = map.keys(val);//Take all keys that contain token. const QList<int> 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));
}
} }
} }