mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Remove GET_FIELD_AS macro, replace with template methods
This commit is contained in:
parent
a94fcad957
commit
4962986df1
15 changed files with 61 additions and 53 deletions
|
@ -436,7 +436,7 @@ bool Manager::PublishEvent(string topic, RecordVal* args)
|
|||
if ( ! args->GetField(0) )
|
||||
return false;
|
||||
|
||||
auto event_name = args->GetStringField(0)->CheckString();
|
||||
auto event_name = args->GetFieldAs<StringVal>(0)->CheckString();
|
||||
auto vv = args->GetField(1)->AsVectorVal();
|
||||
broker::vector xs;
|
||||
xs.reserve(vv->Size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue