mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Switch Frame::SetElement() to use IntrusivePtr
This commit is contained in:
parent
1c617c4f7a
commit
e9e2e388f8
5 changed files with 78 additions and 60 deletions
|
@ -273,7 +273,7 @@ void NameExpr::Assign(Frame* f, IntrusivePtr<Val> v)
|
|||
if ( id->IsGlobal() )
|
||||
id->SetVal(std::move(v));
|
||||
else
|
||||
f->SetElement(id.get(), v.release());
|
||||
f->SetElement(id.get(), std::move(v));
|
||||
}
|
||||
|
||||
bool NameExpr::IsPure() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue