mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +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
|
@ -217,11 +217,11 @@ static void print_log(val_list* vals)
|
|||
{
|
||||
ODesc d(DESC_READABLE);
|
||||
val->Describe(&d);
|
||||
vec->Assign(vec->Size(), new StringVal(d.Description()));
|
||||
vec->Assign(vec->Size(), make_intrusive<StringVal>(d.Description()));
|
||||
}
|
||||
|
||||
record->Assign(0, new Val(current_time(), TYPE_TIME));
|
||||
record->Assign(1, vec.release());
|
||||
record->Assign(0, make_intrusive<Val>(current_time(), TYPE_TIME));
|
||||
record->Assign(1, std::move(vec));
|
||||
log_mgr->Write(plval.get(), record.get());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue