Type: use class IntrusivePtr in FileType

This commit is contained in:
Max Kellermann 2020-03-03 17:06:21 +01:00
parent 43af5f8349
commit 7704d52d28
4 changed files with 11 additions and 17 deletions

View file

@ -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;
}