mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14: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
|
@ -180,7 +180,7 @@ function Reporter::set_weird_sampling_whitelist%(weird_sampling_whitelist: strin
|
|||
while ( (v = wl_table->NextEntry(k, c)) )
|
||||
{
|
||||
auto index = wl_val->RecoverIndex(k);
|
||||
string key = index->Index(0)->AsString()->CheckString();
|
||||
string key = index->Idx(0)->AsString()->CheckString();
|
||||
whitelist_set.emplace(move(key));
|
||||
delete k;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue