mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +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) {
|
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 ) {
|
for ( auto* filter : stream->filters ) {
|
||||||
Filter* filter = *i;
|
|
||||||
string path = filter->path;
|
string path = filter->path;
|
||||||
|
|
||||||
// Policy hooks may veto the logging or alter the log
|
// Policy hooks may veto the logging or alter the log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue