Some minor c++ modernization in EnumType methods

This commit is contained in:
Tim Wojtulewicz 2025-04-02 12:46:45 -07:00
parent c22e54604f
commit 08101eb372
2 changed files with 8 additions and 14 deletions

View file

@ -869,8 +869,7 @@ protected:
// Whether any of the elements of the enum were added via redef's.
bool has_redefs = false;
using ValMap = std::unordered_map<zeek_int_t, EnumValPtr>;
ValMap vals;
std::unordered_map<zeek_int_t, EnumValPtr> vals;
// The counter is initialized to 0 and incremented on every implicit
// auto-increment name that gets added (thus its > 0 if