mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Type: use class IntrusivePtr in TypeDecl
This commit is contained in:
parent
838bba5206
commit
43af5f8349
8 changed files with 32 additions and 38 deletions
|
@ -188,7 +188,7 @@ void ID::UpdateValAttrs()
|
|||
TypeDecl* fd = rt->FieldDecl(i);
|
||||
|
||||
if ( ! fd->attrs )
|
||||
fd->attrs = new Attributes(new attr_list, rt->FieldType(i), true, IsGlobal());
|
||||
fd->attrs = make_intrusive<Attributes>(new attr_list, rt->FieldType(i), true, IsGlobal());
|
||||
|
||||
fd->attrs->AddAttr(new Attr(ATTR_LOG));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue