提交 177f7eb3 编写于 作者: A Anatoly Baksheev

fixed warning

上级 08956165
...@@ -568,7 +568,7 @@ void cv::viz::Viz3d::VizImpl::updateCells(vtkSmartPointer<vtkIdTypeArray> &cells ...@@ -568,7 +568,7 @@ void cv::viz::Viz3d::VizImpl::updateCells(vtkSmartPointer<vtkIdTypeArray> &cells
cells->SetNumberOfTuples(nr_points); cells->SetNumberOfTuples(nr_points);
vtkIdType *cell = cells->GetPointer(0); vtkIdType *cell = cells->GetPointer(0);
// Fill it with 1s // Fill it with 1s
std::fill_n(cell, nr_points * 2, 1); std::fill(cell, cell + nr_points * 2, 1);
cell++; cell++;
for (vtkIdType i = 0; i < nr_points; ++i, cell += 2) for (vtkIdType i = 0; i < nr_points; ++i, cell += 2)
*cell = i; *cell = i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册