use auto in range-based for loop
This commit is contained in:
parent
9958394fa6
commit
43dd4638ed
@ -70,8 +70,8 @@ vtkm::cont::DataSet MakeTestDataSet(const CoordinateType& cType)
|
|||||||
std::vector<vtkm::FloatDefault> Phis = {
|
std::vector<vtkm::FloatDefault> Phis = {
|
||||||
eps, vtkm::TwoPif() / 4.0f, vtkm::TwoPif() / 3.0f, vtkm::TwoPif() / 2.0f, vtkm::TwoPif() - eps
|
eps, vtkm::TwoPif() / 4.0f, vtkm::TwoPif() / 3.0f, vtkm::TwoPif() / 2.0f, vtkm::TwoPif() - eps
|
||||||
};
|
};
|
||||||
for (float& Theta : Thetas)
|
for (auto& Theta : Thetas)
|
||||||
for (float& Phi : Phis)
|
for (auto& Phi : Phis)
|
||||||
coordinates.push_back(vtkm::make_Vec(R, Theta, Phi));
|
coordinates.push_back(vtkm::make_Vec(R, Theta, Phi));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ void TestPointTransform()
|
|||||||
for (int i = 0; i < N; i++)
|
for (int i = 0; i < N; i++)
|
||||||
axes.emplace_back(axisDist(randGenerator), axisDist(randGenerator), axisDist(randGenerator));
|
axes.emplace_back(axisDist(randGenerator), axisDist(randGenerator), axisDist(randGenerator));
|
||||||
|
|
||||||
for (float& angle : angles)
|
for (auto& angle : angles)
|
||||||
for (auto& axe : axes)
|
for (auto& axe : axes)
|
||||||
TestPointTransformRotation(ds, angle, axe);
|
TestPointTransformRotation(ds, angle, axe);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user