mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Val: add TableVal::Assign() overload with IntrusivePtr
Prepare the transition to IntrusivePtr for various callers.
This commit is contained in:
parent
78712d009f
commit
0a6ddfb6b5
54 changed files with 379 additions and 365 deletions
|
@ -745,9 +745,9 @@ Val* DNS_Mgr::BuildMappingVal(DNS_Mapping* dm)
|
|||
{
|
||||
RecordVal* r = new RecordVal(dm_rec);
|
||||
|
||||
r->Assign(0, new Val(dm->CreationTime(), TYPE_TIME));
|
||||
r->Assign(1, new StringVal(dm->ReqHost() ? dm->ReqHost() : ""));
|
||||
r->Assign(2, new AddrVal(dm->ReqAddr()));
|
||||
r->Assign(0, make_intrusive<Val>(dm->CreationTime(), TYPE_TIME));
|
||||
r->Assign(1, make_intrusive<StringVal>(dm->ReqHost() ? dm->ReqHost() : ""));
|
||||
r->Assign(2, make_intrusive<AddrVal>(dm->ReqAddr()));
|
||||
r->Assign(3, val_mgr->GetBool(dm->Valid()));
|
||||
|
||||
Val* h = dm->Host();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue