mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Replace most uses of typedef with using for type aliasing
This commit is contained in:
parent
7101f30646
commit
64748edab1
44 changed files with 100 additions and 101 deletions
|
@ -743,7 +743,7 @@ protected:
|
|||
class EnumType final : public Type
|
||||
{
|
||||
public:
|
||||
typedef std::list<std::pair<std::string, bro_int_t>> enum_name_list;
|
||||
using enum_name_list = std::list<std::pair<std::string, bro_int_t>>;
|
||||
|
||||
explicit EnumType(const EnumType* e);
|
||||
explicit EnumType(const std::string& arg_name);
|
||||
|
@ -792,7 +792,7 @@ protected:
|
|||
bool is_export, detail::Expr* deprecation = nullptr,
|
||||
bool from_redef = false);
|
||||
|
||||
typedef std::map<std::string, bro_int_t> NameMap;
|
||||
using NameMap = std::map<std::string, bro_int_t>;
|
||||
NameMap names;
|
||||
|
||||
// Whether any of the elements of the enum were added via redef's.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue