mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Deprecate VectorVal::Insert() taking raw Val*, use IntrusivePtr
This commit is contained in:
parent
de1e3d7d6d
commit
40db09ccbf
4 changed files with 18 additions and 8 deletions
|
@ -2756,7 +2756,7 @@ void IndexExpr::Assign(Frame* f, IntrusivePtr<Val> v)
|
|||
VectorVal* v_vect = v->AsVectorVal();
|
||||
|
||||
for ( auto idx = 0u; idx < v_vect->Size(); idx++, first++ )
|
||||
v1_vect->Insert(first, v_vect->Lookup(idx)->Ref());
|
||||
v1_vect->Insert(first, {NewRef{}, v_vect->Lookup(idx)});
|
||||
}
|
||||
else if ( ! v1_vect->Assign(lv->Idx(0)->CoerceToUnsigned(), std::move(v)) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue