mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Convert Dictionary types to be templated classes
This has the fortunate side-effect of also making it so we can store the value objects as typed pointers, instead of void*.
This commit is contained in:
parent
15c0bd9b9d
commit
47e7fe2cd1
15 changed files with 1153 additions and 1284 deletions
|
@ -1271,7 +1271,7 @@ Supervisor::NodeConfig Supervisor::NodeConfig::FromRecord(const RecordVal* node)
|
|||
for ( const auto& ee : *env_table )
|
||||
{
|
||||
auto k = ee.GetHashKey();
|
||||
auto* v = ee.GetValue<TableEntryVal*>();
|
||||
auto* v = ee.value;
|
||||
|
||||
auto key = env_table_val->RecreateIndex(*k);
|
||||
auto name = key->Idx(0)->AsStringVal()->ToStdString();
|
||||
|
@ -1286,7 +1286,7 @@ Supervisor::NodeConfig Supervisor::NodeConfig::FromRecord(const RecordVal* node)
|
|||
for ( const auto& cte : *cluster_table )
|
||||
{
|
||||
auto k = cte.GetHashKey();
|
||||
auto* v = cte.GetValue<TableEntryVal*>();
|
||||
auto* v = cte.value;
|
||||
|
||||
auto key = cluster_table_val->RecreateIndex(*k);
|
||||
auto name = key->Idx(0)->AsStringVal()->ToStdString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue