Skip to content
Snippets Groups Projects
Commit 13b84d1b authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap: Committed by Kitware Robot
Browse files

Merge topic 'fixreserve'


e1d59512 vtkArcGridActorPrivate.cxx: vector reserve to vector reserve and init

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarbuildbot <buildbot@kitware.com>
Reviewed-by: default avatarMathieu Westphal (Kitware) <mathieu.westphal@kitware.com>
Merge-request: !11840
parents 17429445 e1d59512
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,7 @@ void vtkArcGridActorPrivate::BuildGrid(vtkViewport* viewport)
const double totalAngle = vtkMath::RadiansFromDegrees(this->Angle);
std::vector<vtkIdType> pids;
pids.reserve(this->Resolution);
std::vector<vtkIdType> pids(this->Resolution);
for (int arc = 0; arc < nbArcs; arc++)
{
pids[0] = polyDataPoints->InsertNextPoint(this->TicksStart->GetPoint(arc));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment