mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Type: use class IntrusivePtr in TypeList
This commit is contained in:
parent
de0289125b
commit
73cea5dcad
13 changed files with 62 additions and 74 deletions
|
@ -587,7 +587,7 @@ static void int_del_func(void* v)
|
|||
void SwitchStmt::Init()
|
||||
{
|
||||
auto t = make_intrusive<TypeList>();
|
||||
t->Append(e->Type()->Ref());
|
||||
t->Append({NewRef{}, e->Type()});
|
||||
comp_hash = new CompositeHash(std::move(t));
|
||||
|
||||
case_label_value_map.SetDeleteFunc(int_del_func);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue