Switch zeek:🆔:lookup to zeek:🆔:find

For parity with Scope since it now uses Find instead of Lookup
This commit is contained in:
Jon Siwek 2020-05-14 18:00:18 -07:00
parent 7843416e51
commit 4debad8caf
59 changed files with 339 additions and 339 deletions

View file

@ -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 )
{