mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Merge remote-tracking branch 'origin/topic/timw/clang-tidy'
* origin/topic/timw/clang-tidy: Don't specify 0u for initial value of loops changed to size_t Use .empty() instead of checking size against zero Use properly-sized loop variables or convert to ranged-for (bugprone-too-small-loop-variable) Merge changes one type over to ptrdiff_t
This commit is contained in:
commit
01fa5611ef
24 changed files with 105 additions and 103 deletions
|
@ -436,7 +436,7 @@ bool Manager::CreateEventStream(zeek::RecordVal* fval)
|
|||
}
|
||||
|
||||
Field** logf = new Field*[fieldsV.size()];
|
||||
for ( unsigned int i = 0; i < fieldsV.size(); i++ )
|
||||
for ( size_t i = 0; i < fieldsV.size(); i++ )
|
||||
logf[i] = fieldsV[i];
|
||||
|
||||
stream->num_fields = fieldsV.size();
|
||||
|
@ -680,7 +680,7 @@ bool Manager::CreateTableStream(zeek::RecordVal* fval)
|
|||
}
|
||||
|
||||
Field** fields = new Field*[fieldsV.size()];
|
||||
for ( unsigned int i = 0; i < fieldsV.size(); i++ )
|
||||
for ( size_t i = 0; i < fieldsV.size(); i++ )
|
||||
fields[i] = fieldsV[i];
|
||||
|
||||
stream->pred = pred ? pred->AsFunc() : nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue