mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Mark List::append/insert deprecated in favor of push_back/push_front for consistency with Queue
This commit is contained in:
parent
d2d5043bf0
commit
6144f459e1
39 changed files with 221 additions and 211 deletions
10
src/Type.cc
10
src/Type.cc
|
@ -226,7 +226,7 @@ void TypeList::Append(BroType* t)
|
|||
if ( pure_type && ! same_type(t, pure_type) )
|
||||
reporter->InternalError("pure type-list violation");
|
||||
|
||||
types.append(t);
|
||||
types.push_back(t);
|
||||
}
|
||||
|
||||
void TypeList::AppendEvenIfNotPure(BroType* t)
|
||||
|
@ -237,7 +237,7 @@ void TypeList::AppendEvenIfNotPure(BroType* t)
|
|||
pure_type = 0;
|
||||
}
|
||||
|
||||
types.append(t);
|
||||
types.push_back(t);
|
||||
}
|
||||
|
||||
void TypeList::Describe(ODesc* d) const
|
||||
|
@ -704,7 +704,7 @@ RecordType* RecordType::ShallowClone()
|
|||
{
|
||||
auto pass = new type_decl_list();
|
||||
for ( const auto& type : *types )
|
||||
pass->append(new TypeDecl(*type));
|
||||
pass->push_back(new TypeDecl(*type));
|
||||
return new RecordType(pass);
|
||||
}
|
||||
|
||||
|
@ -843,7 +843,7 @@ const char* RecordType::AddFields(type_decl_list* others, attr_list* attr)
|
|||
td->attrs->AddAttr(new Attr(ATTR_LOG));
|
||||
}
|
||||
|
||||
types->append(td);
|
||||
types->push_back(td);
|
||||
}
|
||||
|
||||
delete others;
|
||||
|
@ -1870,7 +1870,7 @@ BroType* merge_types(const BroType* t1, const BroType* t2)
|
|||
return 0;
|
||||
}
|
||||
|
||||
tdl3->append(new TypeDecl(tdl3_i, copy_string(td1->id)));
|
||||
tdl3->push_back(new TypeDecl(tdl3_i, copy_string(td1->id)));
|
||||
}
|
||||
|
||||
return new RecordType(tdl3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue