Type: base_type() returns IntrusivePtr

This commit is contained in:
Max Kellermann 2020-03-03 19:03:45 +01:00
parent f0a357cadf
commit 6495193aae
16 changed files with 104 additions and 104 deletions

View file

@ -57,7 +57,7 @@ BroFile::BroFile(FILE* arg_f)
Init();
f = arg_f;
name = access = 0;
t = base_type(TYPE_STRING);
t = base_type(TYPE_STRING).release();
is_open = (f != 0);
}
@ -67,7 +67,7 @@ BroFile::BroFile(FILE* arg_f, const char* arg_name, const char* arg_access)
f = arg_f;
name = copy_string(arg_name);
access = copy_string(arg_access);
t = base_type(TYPE_STRING);
t = base_type(TYPE_STRING).release();
is_open = (f != 0);
}
@ -77,7 +77,7 @@ BroFile::BroFile(const char* arg_name, const char* arg_access, BroType* arg_t)
f = 0;
name = copy_string(arg_name);
access = copy_string(arg_access);
t = arg_t ? arg_t : base_type(TYPE_STRING);
t = arg_t ? arg_t : base_type(TYPE_STRING).release();
if ( streq(name, "/dev/stdin") )
f = stdin;