mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Cleanups related to PDict -> std::map replacements
This commit is contained in:
parent
e6558d1f19
commit
87f85ecca1
18 changed files with 41 additions and 36 deletions
|
@ -407,7 +407,7 @@ bool Manager::PublishIdentifier(std::string topic, std::string id)
|
|||
if ( peer_count == 0 )
|
||||
return true;
|
||||
|
||||
ID* i = global_scope()->Lookup(id.c_str());
|
||||
ID* i = global_scope()->Lookup(id);
|
||||
|
||||
if ( ! i )
|
||||
return false;
|
||||
|
@ -998,7 +998,7 @@ void Manager::ProcessEvent(const broker::topic& topic, broker::zeek::Event ev)
|
|||
DBG_LOG(DBG_BROKER, "Process event: %s %s",
|
||||
name.data(), RenderMessage(args).data());
|
||||
++statistics.num_events_incoming;
|
||||
auto handler = event_registry->Lookup(name.data());
|
||||
auto handler = event_registry->Lookup(name);
|
||||
|
||||
if ( ! handler )
|
||||
return;
|
||||
|
@ -1240,7 +1240,7 @@ bool Manager::ProcessIdentifierUpdate(broker::zeek::IdentifierUpdate iu)
|
|||
++statistics.num_ids_incoming;
|
||||
auto id_name = std::move(iu.id_name());
|
||||
auto id_value = std::move(iu.id_value());
|
||||
auto id = global_scope()->Lookup(id_name.c_str());
|
||||
auto id = global_scope()->Lookup(id_name);
|
||||
|
||||
if ( ! id )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue