diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-11-04 15:09:28 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-11-04 15:09:28 +0100 |
commit | b3043e49f09551187e848e0aacf88d1cf5e271e4 (patch) | |
tree | 846b576b407213f124640d42fefca622ac7eb9d8 /src/Alpha_complex/include | |
parent | c7d99937affeeac7ef1de05baa42d0392c8d5dc3 (diff) |
Use range-for loop
Diffstat (limited to 'src/Alpha_complex/include')
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex_3d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h index 652a40a4..cb9cb926 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h @@ -580,8 +580,8 @@ Weighted_alpha_complex_3d::Weighted_point_3 wp0(Weighted_alpha_complex_3d::Bare_ const Point_3& get_point(std::size_t vertex) { if (map_cgal_simplex_tree.size() != cgal_vertex_iterator_vector.size()) { cgal_vertex_iterator_vector.resize(map_cgal_simplex_tree.size()); - for (auto map_iterator = map_cgal_simplex_tree.begin(); map_iterator != map_cgal_simplex_tree.end(); map_iterator++) { - cgal_vertex_iterator_vector[map_iterator->second] = map_iterator->first; + for (auto map_iterator : map_cgal_simplex_tree) { + cgal_vertex_iterator_vector[map_iterator.second] = map_iterator.first; } } |