switch simple loops that don't need indices to being iterator-based

This commit is contained in:
Vern Paxson 2021-08-19 09:38:50 -07:00
parent ffd1905f90
commit d609a11312
8 changed files with 34 additions and 52 deletions

View file

@ -1107,8 +1107,8 @@ static ExprPtr build_disjunction(std::vector<ConstExprPtr>& patterns)
ExprPtr e = patterns[0];
for ( unsigned int i = 1; i < patterns.size(); ++i )
e = make_intrusive<BitExpr>(EXPR_OR, e, patterns[i]);
for ( auto& p : patterns )
e = make_intrusive<BitExpr>(EXPR_OR, e, p);
return e;
}