Type: use class IntrusivePtr in TypeList

This commit is contained in:
Max Kellermann 2020-03-03 17:01:21 +01:00
parent de0289125b
commit 73cea5dcad
13 changed files with 62 additions and 74 deletions

View file

@ -173,9 +173,9 @@ void DNS_Mgr_mapping_delete_func(void* v)
static TableVal* empty_addr_set()
{
BroType* addr_t = base_type(TYPE_ADDR);
IntrusivePtr<BroType> addr_t{AdoptRef{}, base_type(TYPE_ADDR)};
auto set_index = make_intrusive<TypeList>(addr_t);
set_index->Append(addr_t);
set_index->Append(std::move(addr_t));
auto s = make_intrusive<SetType>(std::move(set_index), nullptr);
return new TableVal(std::move(s));
}