mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Change BroType::ShallowClone() to return IntrusivePtr
This commit is contained in:
parent
b05e5c7686
commit
89dd668aff
3 changed files with 28 additions and 26 deletions
|
@ -363,7 +363,7 @@ void add_type(ID* id, IntrusivePtr<BroType> t, attr_list* attr)
|
|||
tnew = std::move(t);
|
||||
else
|
||||
// Clone the type to preserve type name aliasing.
|
||||
tnew = {AdoptRef{}, t->ShallowClone()};
|
||||
tnew = t->ShallowClone();
|
||||
|
||||
BroType::AddAlias(new_type_name, tnew.get());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue