@@ -196,7 +196,7 @@ namespace osmium {
196196 ++m_stats.wrong_role ;
197197 if (debug ()) {
198198 std::cerr << " Segment " << *segment << " from way " << segment->way ()->id () << " has role '" << segment->role_name ()
199- << " ', but should have role '" << (ring.is_outer () ? " outer" : " inner" ) << " '\n " ;
199+ << " ', but should have role '" << (ring.is_outer () ? " outer" : " inner" ) << " '\n " ;
200200 }
201201 if (m_config.problem_reporter ) {
202202 if (ring.is_outer ()) {
@@ -326,7 +326,7 @@ namespace osmium {
326326 const int64_t ay = a.y ();
327327 const int64_t by = b.y ();
328328 const int64_t ly = end_location.y ();
329- const auto z = (bx - ax)* (ly - ay) - (by - ay)* (lx - ax);
329+ const auto z = (bx - ax) * (ly - ay) - (by - ay) * (lx - ax);
330330 if (debug ()) {
331331 std::cerr << " Segment z=" << z << ' \n ' ;
332332 }
@@ -353,7 +353,7 @@ namespace osmium {
353353 const int64_t ay = a.y ();
354354 const int64_t by = b.y ();
355355 const int64_t ly = location.y ();
356- const auto z = (bx - ax)* (ly - ay) - (by - ay)* (lx - ax);
356+ const auto z = (bx - ax) * (ly - ay) - (by - ay) * (lx - ax);
357357
358358 if (z >= 0 ) {
359359 nesting += segment->is_reverse () ? -1 : 1 ;
@@ -593,7 +593,7 @@ namespace osmium {
593593 }
594594 ++m_stats.open_rings ;
595595 } else {
596- if (loc == previous_location && (m_split_locations.empty () || m_split_locations.back () != previous_location )) {
596+ if (loc == previous_location && (m_split_locations.empty () || m_split_locations.back () != previous_location)) {
597597 m_split_locations.push_back (previous_location);
598598 }
599599 ++it;
@@ -696,7 +696,7 @@ namespace osmium {
696696 }
697697
698698 bool there_are_open_rings () const noexcept {
699- return std::any_of (m_rings.cbegin (), m_rings.cend (), [](const ProtoRing& ring){
699+ return std::any_of (m_rings.cbegin (), m_rings.cend (), [](const ProtoRing& ring) {
700700 return !ring.closed ();
701701 });
702702 }
@@ -907,11 +907,11 @@ namespace osmium {
907907 auto count_remaining = m_segment_list.size ();
908908 for (const osmium::Location& location : m_split_locations) {
909909 const auto locs = make_range (std::equal_range (m_locations.begin (),
910- m_locations.end (),
911- slocation{},
912- [this , &location](const slocation& lhs, const slocation& rhs) {
913- return lhs.location (m_segment_list, location) < rhs.location (m_segment_list, location);
914- }));
910+ m_locations.end (),
911+ slocation{},
912+ [this , &location](const slocation& lhs, const slocation& rhs) {
913+ return lhs.location (m_segment_list, location) < rhs.location (m_segment_list, location);
914+ }));
915915 for (auto & loc : locs) {
916916 if (!m_segment_list[loc.item ].is_done ()) {
917917 count_remaining -= add_new_ring_complex (loc);
@@ -1152,7 +1152,7 @@ namespace osmium {
11521152 timer_roles.stop ();
11531153 }
11541154
1155- m_stats.outer_rings = std::count_if (m_rings.cbegin (), m_rings.cend (), [](const ProtoRing& ring){
1155+ m_stats.outer_rings = std::count_if (m_rings.cbegin (), m_rings.cend (), [](const ProtoRing& ring) {
11561156 return ring.is_outer ();
11571157 });
11581158 m_stats.inner_rings = m_rings.size () - m_stats.outer_rings ;
0 commit comments