mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Rename BroType to Type
This commit is contained in:
parent
c04d9cae45
commit
137e416a03
34 changed files with 367 additions and 359 deletions
|
@ -403,19 +403,19 @@ void ODesc::Clear()
|
|||
}
|
||||
}
|
||||
|
||||
bool ODesc::PushType(const zeek::BroType* type)
|
||||
bool ODesc::PushType(const zeek::Type* type)
|
||||
{
|
||||
auto res = encountered_types.insert(type);
|
||||
return std::get<1>(res);
|
||||
}
|
||||
|
||||
bool ODesc::PopType(const zeek::BroType* type)
|
||||
bool ODesc::PopType(const zeek::Type* type)
|
||||
{
|
||||
size_t res = encountered_types.erase(type);
|
||||
return (res == 1);
|
||||
}
|
||||
|
||||
bool ODesc::FindType(const zeek::BroType* type)
|
||||
bool ODesc::FindType(const zeek::Type* type)
|
||||
{
|
||||
auto res = encountered_types.find(type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue