mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Fix clang-tidy modernize-loop-convert findings
This commit is contained in:
parent
49b803c0a8
commit
f3588657bf
56 changed files with 452 additions and 542 deletions
|
@ -65,8 +65,8 @@ void EventHandler::Call(Args* vl, bool no_remote, double ts) {
|
|||
xs.Reserve(vl->size());
|
||||
bool valid_args = true;
|
||||
|
||||
for ( size_t index = 0; index < vl->size(); ++index ) {
|
||||
if ( ! xs.Add((*vl)[index]) ) {
|
||||
for ( const auto& v : *vl ) {
|
||||
if ( ! xs.Add(v) ) {
|
||||
valid_args = false;
|
||||
auto_publish.clear();
|
||||
reporter->Error("failed auto-remote event '%s', disabled", Name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue