mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -162,8 +162,8 @@ void Trigger::Terminate() {
|
|||
Trigger::~Trigger() {
|
||||
DBG_LOG(DBG_NOTIFIERS, "%s: deleting", Name());
|
||||
|
||||
for ( ValCache::iterator i = cache.begin(); i != cache.end(); ++i )
|
||||
Unref(i->second);
|
||||
for ( auto& [_, trigger] : cache )
|
||||
Unref(trigger);
|
||||
|
||||
Unref(frame);
|
||||
UnregisterAll();
|
||||
|
@ -457,9 +457,8 @@ void Manager::Process() {
|
|||
TriggerList tmp;
|
||||
pending = &tmp;
|
||||
|
||||
for ( TriggerList::iterator i = orig->begin(); i != orig->end(); ++i ) {
|
||||
Trigger* t = *i;
|
||||
(*i)->Eval();
|
||||
for ( auto* t : *orig ) {
|
||||
t->Eval();
|
||||
Unref(t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue