mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Type: use class IntrusivePtr in FileType
This commit is contained in:
parent
43af5f8349
commit
7704d52d28
4 changed files with 11 additions and 17 deletions
|
@ -49,7 +49,7 @@ static FileType* GetStringFileType() noexcept
|
|||
{
|
||||
static FileType* string_file_type = 0;
|
||||
if ( ! string_file_type )
|
||||
string_file_type = new FileType(base_type(TYPE_STRING));
|
||||
string_file_type = new FileType({AdoptRef{}, base_type(TYPE_STRING)});
|
||||
return string_file_type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue