mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Switch to using std::ranges algorithms
This commit is contained in:
parent
b4cbda4e02
commit
72c79006ac
42 changed files with 90 additions and 93 deletions
|
@ -469,7 +469,7 @@ void Manager::Process() {
|
|||
}
|
||||
|
||||
void Manager::Queue(Trigger* trigger) {
|
||||
if ( std::find(pending->begin(), pending->end(), trigger) == pending->end() ) {
|
||||
if ( std::ranges::find(*pending, trigger) == pending->end() ) {
|
||||
Ref(trigger);
|
||||
pending->push_back(trigger);
|
||||
trigger_count->Inc();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue