We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6041fad commit 727a506Copy full SHA for 727a506
gz-waves/src/systems/hydrodynamics/Hydrodynamics.cc
@@ -91,8 +91,8 @@ void ApplyPose(
91
it.second != std::end(_target.vertices());
92
++it.first, ++it.second)
93
{
94
- auto& v0 = *it.first;
95
- auto& v1 = *it.second;
+ const auto& v0 = *it.first;
+ const auto& v1 = *it.second;
96
const cgal::Point3& p0 = _source.point(v0);
97
98
// Affine transformation
@@ -183,7 +183,7 @@ math::AxisAlignedBox CreateAxisAlignedBox(cgal::MeshPtr _mesh)
183
double max_y = min_y;
184
double max_z = min_z;
185
186
- for (auto& vertex : _mesh->vertices())
+ for (const auto& vertex : _mesh->vertices())
187
188
auto& point = _mesh->point(vertex);
189
min_x = std::min(point.x(), min_x);
0 commit comments