Commit 5e66581b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replace auto &&each by const auto &each.

parent db07c988
......@@ -119,7 +119,7 @@ subdivide(VertexList &vertices, TriangleList triangles)
TriangleList result;
Index mid[3];
for (auto &&each : triangles)
for (const auto &each : triangles)
{
for (int edge = 0; edge < 3; ++edge)
mid[edge] = vertexForEdge(lookup, vertices, each[edge], each[(edge + 1) % 3]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment