mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/timw/easy-pdict-replacements'
* origin/topic/timw/easy-pdict-replacements: Cleanups related to PDict -> std::map replacements Remove other simple uses of PDict Protocols: Remove uses of PDict g_dbgfilemaps: Remove uses of PDict Scope: remove uses of PDict DFA: remove uses of PDict EventRegistry: remove uses of PDict
This commit is contained in:
commit
94c380297e
37 changed files with 275 additions and 298 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