mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
migrate to differentiated vector "At" accessors to support future efficiency
This commit is contained in:
parent
bc4a6c0d07
commit
0118b6ee38
15 changed files with 91 additions and 89 deletions
|
@ -443,7 +443,7 @@ bool Manager::PublishEvent(string topic, RecordVal* args)
|
|||
|
||||
for ( auto i = 0u; i < vv->Size(); ++i )
|
||||
{
|
||||
const auto& val = vv->At(i)->AsRecordVal()->GetField(0);
|
||||
const auto& val = vv->RecordValAt(i)->GetField(0);
|
||||
auto data_val = static_cast<detail::DataVal*>(val.get());
|
||||
xs.emplace_back(data_val->data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue