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