mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
logging/WriteToFilters: Use range-based for loop
This commit is contained in:
parent
0a3d98973f
commit
dfa8bac273
1 changed files with 1 additions and 2 deletions
|
@ -997,8 +997,7 @@ bool Manager::Write(EnumVal* id, RecordVal* columns_arg) {
|
|||
}
|
||||
|
||||
bool Manager::WriteToFilters(const Manager::Stream* stream, zeek::RecordValPtr columns, PolicyVerdict stream_verdict) {
|
||||
for ( list<Filter*>::const_iterator i = stream->filters.begin(); i != stream->filters.end(); ++i ) {
|
||||
Filter* filter = *i;
|
||||
for ( auto* filter : stream->filters ) {
|
||||
string path = filter->path;
|
||||
|
||||
// Policy hooks may veto the logging or alter the log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue