mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
switch simple loops that don't need indices to being iterator-based
This commit is contained in:
parent
ffd1905f90
commit
d609a11312
8 changed files with 34 additions and 52 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue