Migrate TypeList to store IntrusivePtrs

This changes return types of TypeList::Types() and
IndexType::IndexTypes() to return std::vector instead of type_list*
This commit is contained in:
Jon Siwek 2020-05-06 23:12:47 -07:00
parent 011866a908
commit 455fc29b1a
14 changed files with 271 additions and 248 deletions

View file

@ -278,15 +278,15 @@ bool Manager::CreateStream(EnumVal* id, RecordVal* sval)
return false;
}
const type_list* args = etype->ArgTypes()->Types();
const auto& args = etype->ArgTypes()->Types();
if ( args->length() != 1 )
if ( args.size() != 1 )
{
reporter->Error("stream event must take a single argument");
return false;
}
if ( ! same_type((*args)[0], columns) )
if ( ! same_type(args[0].get(), columns) )
{
reporter->Error("stream event's argument type does not match column record type");
return false;