mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Deprecate RecordVal::Assign(int, Val*)
And adapt all usages to the existing overload taking IntrusivePtr.
This commit is contained in:
parent
d7ca63c1be
commit
f3d160d034
38 changed files with 366 additions and 332 deletions
|
@ -1908,7 +1908,7 @@ RecordVal* Manager::ListValToRecordVal(ListVal* list, RecordType *request_type,
|
|||
(*position)++;
|
||||
}
|
||||
|
||||
rec->Assign(i, fieldVal->Ref());
|
||||
rec->Assign(i, {NewRef{}, fieldVal});
|
||||
}
|
||||
|
||||
return rec;
|
||||
|
@ -1945,7 +1945,7 @@ RecordVal* Manager::ValueToRecordVal(const Stream* stream, const Value* const *v
|
|||
}
|
||||
|
||||
if ( fieldVal )
|
||||
rec->Assign(i, fieldVal);
|
||||
rec->Assign(i, {AdoptRef{}, fieldVal});
|
||||
}
|
||||
|
||||
return rec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue