Break loop early
This commit is contained in:
parent
82825ab721
commit
8851fd64a6
|
@ -632,8 +632,10 @@ void CheckCondition::multiCondition2()
|
||||||
}
|
}
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
for (std::set<unsigned int>::const_iterator it = vars.begin(); it != vars.end(); ++it) {
|
for (std::set<unsigned int>::const_iterator it = vars.begin(); it != vars.end(); ++it) {
|
||||||
if (isVariableChanged(tok1, tok2, *it, nonlocal, _settings))
|
if (isVariableChanged(tok1, tok2, *it, nonlocal, _settings)) {
|
||||||
changed = true;
|
changed = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (changed)
|
if (changed)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue