mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38: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
|
@ -39,7 +39,7 @@ std::set<std::string> val_to_topic_set(Val* val)
|
|||
while ( tbl->NextEntry(k, c) )
|
||||
{
|
||||
auto index = val->AsTableVal()->RecoverIndex(k);
|
||||
rval.emplace(index->Index(0)->AsString()->CheckString());
|
||||
rval.emplace(index->Idx(0)->AsString()->CheckString());
|
||||
delete k;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue