mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Change Scope::GenerateTemporary() to return IntrusivePtr
This commit is contained in:
parent
a13899c95e
commit
46e23b49fb
5 changed files with 24 additions and 22 deletions
|
@ -72,9 +72,9 @@ IntrusivePtr<ID> Scope::Remove(std::string_view name)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
ID* Scope::GenerateTemporary(const char* name)
|
||||
IntrusivePtr<ID> Scope::GenerateTemporary(const char* name)
|
||||
{
|
||||
return new ID(name, SCOPE_FUNCTION, false);
|
||||
return make_intrusive<ID>(name, SCOPE_FUNCTION, false);
|
||||
}
|
||||
|
||||
id_list* Scope::GetInits()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue