mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
fixed warning
This commit is contained in:
parent
0895616576
commit
177f7eb339
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user