mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -364,11 +364,11 @@ String::Vec* String::VecFromPolicy(VectorVal* vec)
|
|||
|
||||
for ( unsigned int i = 0; i < vec->Size(); ++i )
|
||||
{
|
||||
const auto& v = vec->At(i); // get the RecordVal
|
||||
auto v = vec->StringAt(i);
|
||||
if ( ! v )
|
||||
continue;
|
||||
|
||||
String* string = new String(*(v->AsString()));
|
||||
String* string = new String(*v);
|
||||
result->push_back(string);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue