|
5 | 5 |
|
6 | 6 | This file is part of Osmium (https://osmcode.org/libosmium). |
7 | 7 |
|
8 | | -Copyright 2013-2022 Jochen Topf <jochen@topf.org> and others (see README). |
| 8 | +Copyright 2013-2023 Jochen Topf <jochen@topf.org> and others (see README). |
9 | 9 |
|
10 | 10 | Boost Software License - Version 1.0 - August 17th, 2003 |
11 | 11 |
|
@@ -608,7 +608,7 @@ namespace osmium { |
608 | 608 |
|
609 | 609 | void create_rings_simple_case() { |
610 | 610 | auto count_remaining = m_segment_list.size(); |
611 | | - for (slocation& sl : m_locations) { |
| 611 | + for (const slocation& sl : m_locations) { |
612 | 612 | const NodeRefSegment& segment = m_segment_list[sl.item]; |
613 | 613 | if (!segment.is_done()) { |
614 | 614 | count_remaining -= add_new_ring(sl); |
@@ -671,7 +671,7 @@ namespace osmium { |
671 | 671 | std::cerr << " Trying to merge " << open_ring_its.size() << " open rings (try_to_merge)\n"; |
672 | 672 | } |
673 | 673 |
|
674 | | - std::vector<location_to_ring_map> xrings = create_location_to_ring_map(open_ring_its); |
| 674 | + const auto xrings = create_location_to_ring_map(open_ring_its); |
675 | 675 |
|
676 | 676 | auto it = xrings.cbegin(); |
677 | 677 | while (it != xrings.cend()) { |
@@ -825,7 +825,7 @@ namespace osmium { |
825 | 825 |
|
826 | 826 | find_inner_outer_complex(); |
827 | 827 | ProtoRing* outer_ring = find_enclosing_ring(ring_min->ring().min_segment()); |
828 | | - bool ring_min_is_outer = !outer_ring; |
| 828 | + const bool ring_min_is_outer = !outer_ring; |
829 | 829 | if (debug()) { |
830 | 830 | std::cerr << " Open ring is " << (ring_min_is_outer ? "outer" : "inner") << " ring\n"; |
831 | 831 | } |
@@ -924,7 +924,7 @@ namespace osmium { |
924 | 924 |
|
925 | 925 | // Now find all the rest of the rings (ie not starting at split locations) |
926 | 926 | if (count_remaining > 0) { |
927 | | - for (slocation& sl : m_locations) { |
| 927 | + for (const slocation& sl : m_locations) { |
928 | 928 | const NodeRefSegment& segment = m_segment_list[sl.item]; |
929 | 929 | if (!segment.is_done()) { |
930 | 930 | count_remaining -= add_new_ring_complex(sl); |
|
0 commit comments