mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Deprecate TableVal::ConvertToList() and TableVal::ConvertToPureList()
Replaced with ToListVal() and ToPureListVal() that return IntrusivePtr
This commit is contained in:
parent
5f57ceb70a
commit
b096e552d3
10 changed files with 37 additions and 38 deletions
|
@ -1361,16 +1361,11 @@ void id_to_maskedvallist(const char* id, maskedvalue_list* append_to,
|
|||
|
||||
if ( v->Type()->Tag() == TYPE_TABLE )
|
||||
{
|
||||
ListVal* lv = v->AsTableVal()->ConvertToPureList();
|
||||
auto lv = v->AsTableVal()->ToPureListVal();
|
||||
|
||||
for ( const auto& val : lv->Vals() )
|
||||
if ( ! val_to_maskedval(val.get(), append_to, prefix_vector) )
|
||||
{
|
||||
Unref(lv);
|
||||
return;
|
||||
}
|
||||
|
||||
Unref(lv);
|
||||
}
|
||||
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue