mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Switch zeek:🆔:lookup to zeek:🆔:find
For parity with Scope since it now uses Find instead of Lookup
This commit is contained in:
parent
7843416e51
commit
4debad8caf
59 changed files with 339 additions and 339 deletions
|
@ -59,19 +59,19 @@ bool BroSubstring::DoesCover(const BroSubstring* bst) const
|
|||
VectorVal* BroSubstring::VecToPolicy(Vec* vec)
|
||||
{
|
||||
RecordType* sw_substring_type =
|
||||
zeek::id::lookup_type("sw_substring")->AsRecordType();
|
||||
zeek::id::find_type("sw_substring")->AsRecordType();
|
||||
if ( ! sw_substring_type )
|
||||
return nullptr;
|
||||
|
||||
RecordType* sw_align_type =
|
||||
zeek::id::lookup_type("sw_align")->AsRecordType();
|
||||
zeek::id::find_type("sw_align")->AsRecordType();
|
||||
if ( ! sw_align_type )
|
||||
return nullptr;
|
||||
|
||||
auto sw_align_vec_type = zeek::id::lookup_type<VectorType>("sw_align_vec");
|
||||
auto sw_align_vec_type = zeek::id::find_type<VectorType>("sw_align_vec");
|
||||
|
||||
auto result =
|
||||
make_intrusive<VectorVal>(zeek::id::lookup_type<VectorType>("sw_substring_vec"));
|
||||
make_intrusive<VectorVal>(zeek::id::find_type<VectorType>("sw_substring_vec"));
|
||||
|
||||
if ( vec )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue