migrate to differentiated vector "At" accessors to support future efficiency

This commit is contained in:
Vern Paxson 2021-02-25 13:21:55 -08:00
parent bc4a6c0d07
commit 0118b6ee38
15 changed files with 91 additions and 89 deletions

View file

@ -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);
}