mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Type: use class IntrusivePtr in IndexType
This commit is contained in:
parent
674e141a15
commit
de0289125b
8 changed files with 45 additions and 77 deletions
|
@ -32,6 +32,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include "BroString.h"
|
||||
#include "Expr.h"
|
||||
#include "Event.h"
|
||||
#include "Net.h"
|
||||
#include "Val.h"
|
||||
|
@ -173,9 +174,9 @@ void DNS_Mgr_mapping_delete_func(void* v)
|
|||
static TableVal* empty_addr_set()
|
||||
{
|
||||
BroType* addr_t = base_type(TYPE_ADDR);
|
||||
TypeList* set_index = new TypeList(addr_t);
|
||||
auto set_index = make_intrusive<TypeList>(addr_t);
|
||||
set_index->Append(addr_t);
|
||||
auto s = make_intrusive<SetType>(set_index, nullptr);
|
||||
auto s = make_intrusive<SetType>(std::move(set_index), nullptr);
|
||||
return new TableVal(std::move(s));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue