mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Add version of Frame::SetElement() taking IntrusivePtr<ID>
Expect the version using raw ID* could go away eventually, but this is convenience for the meantime.
This commit is contained in:
parent
2cee468eac
commit
0d19e8fb4c
3 changed files with 5 additions and 3 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(), std::move(v));
|
||||
f->SetElement(id, std::move(v));
|
||||
}
|
||||
|
||||
bool NameExpr::IsPure() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue