mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Type: return IntrusivePtr
This commit is contained in:
parent
0a6ddfb6b5
commit
ba35ebec4c
38 changed files with 319 additions and 334 deletions
|
@ -202,9 +202,8 @@ static IntrusivePtr<EnumVal> lookup_enum_val(const char* module_name, const char
|
|||
|
||||
int index = et->Lookup(module_name, name);
|
||||
assert(index >= 0);
|
||||
IntrusivePtr<EnumVal> rval{AdoptRef{}, et->GetVal(index)};
|
||||
|
||||
return rval;
|
||||
return et->GetVal(index);
|
||||
}
|
||||
|
||||
static void print_log(val_list* vals)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue