Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
5e66581b
Commit
5e66581b
authored
Jan 24, 2019
by
Uwe Schulzweida
Browse files
Replace auto &&each by const auto &each.
parent
db07c988
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid_icosphere.cc
View file @
5e66581b
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment