mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48: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
|
@ -1196,7 +1196,7 @@ IntrusivePtr<Val> ForStmt::DoExec(Frame* f, Val* v, stmt_flow_type& flow) const
|
|||
f->SetElement(value_var.get(), current_tev->Value()->Ref());
|
||||
|
||||
for ( int i = 0; i < ind_lv->Length(); i++ )
|
||||
f->SetElement((*loop_vars)[i], ind_lv->Index(i)->Ref());
|
||||
f->SetElement((*loop_vars)[i], ind_lv->Idx(i)->Ref());
|
||||
|
||||
flow = FLOW_NEXT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue