mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Deprecate TypeList::PureType(), replace with TypeList::GetPureType()
This commit is contained in:
parent
9ab7150883
commit
011866a908
8 changed files with 21 additions and 14 deletions
|
@ -1235,8 +1235,8 @@ IntrusivePtr<TableVal> ListVal::ToSetVal() const
|
|||
if ( tag == TYPE_ANY )
|
||||
Internal("conversion of heterogeneous list to set");
|
||||
|
||||
auto set_index = make_intrusive<TypeList>(
|
||||
IntrusivePtr{NewRef{}, type->AsTypeList()->PureType()});
|
||||
const auto& pt = type->AsTypeList()->GetPureType();
|
||||
auto set_index = make_intrusive<TypeList>(pt);
|
||||
set_index->Append(base_type(tag));
|
||||
auto s = make_intrusive<SetType>(std::move(set_index), nullptr);
|
||||
auto t = make_intrusive<TableVal>(std::move(s));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue