mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Switch ListVal to store IntrusivePtrs
* Deprecates ListVal::Index() methods and replaces with ListVal::Idx() * Replaces ListVal::Vals() method with one that returns std::vector<IntrusivePtr<Val>> rather than val_list
This commit is contained in:
parent
b422f68b88
commit
5f57ceb70a
19 changed files with 111 additions and 100 deletions
|
@ -1362,9 +1362,9 @@ void id_to_maskedvallist(const char* id, maskedvalue_list* append_to,
|
|||
if ( v->Type()->Tag() == TYPE_TABLE )
|
||||
{
|
||||
ListVal* lv = v->AsTableVal()->ConvertToPureList();
|
||||
val_list* vals = lv->Vals();
|
||||
for ( const auto& val : *vals )
|
||||
if ( ! val_to_maskedval(val, append_to, prefix_vector) )
|
||||
|
||||
for ( const auto& val : lv->Vals() )
|
||||
if ( ! val_to_maskedval(val.get(), append_to, prefix_vector) )
|
||||
{
|
||||
Unref(lv);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue