mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
CompHash: use class IntrusivePtr for the type
field
This commit is contained in:
parent
31b3a56740
commit
53f49e0057
7 changed files with 17 additions and 22 deletions
|
@ -1352,7 +1352,8 @@ void TableVal::Init(TableType* t)
|
|||
else
|
||||
subnets = 0;
|
||||
|
||||
table_hash = new CompositeHash(table_type->Indices());
|
||||
table_hash = new CompositeHash(IntrusivePtr<TypeList>(NewRef{},
|
||||
table_type->Indices()));
|
||||
val.table_val = new PDict<TableEntryVal>;
|
||||
val.table_val->SetDeleteFunc(table_entry_val_delete_func);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue