Commit dd4a2451 authored by Cédric Traizet's avatar Cédric Traizet

PERF: initialize the variable length vector with a size parameter

parent 94a6cd4c
......@@ -87,8 +87,7 @@ void VectorPrediction<RegressionMode>::DoExecute()
for (auto const& feature : layer)
MeasurementType mv;
MeasurementType mv(nbFeatures);
for (int idx = 0; idx < nbFeatures; ++idx)
// Beware that itemIndex differs from ogr layer field index
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment