Refactoring.
--HG-- branch : develop
This commit is contained in:
parent
7dc29c0f00
commit
49c091be38
|
@ -145,13 +145,10 @@ void QmuFormulaBase::SetSepForEval()
|
|||
void QmuFormulaBase::RemoveAll(QMap<int, QString> &map, const QString &val)
|
||||
{
|
||||
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)
|
||||
{
|
||||
map.remove(listKeys.at(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}// namespace qmu
|
||||
|
|
Loading…
Reference in New Issue
Block a user