55
66This file is part of Osmium (https://osmcode.org/libosmium).
77
8- Copyright 2013-2023 Jochen Topf <jochen@topf.org> and others (see README).
8+ Copyright 2013-2025 Jochen Topf <jochen@topf.org> and others (see README).
99
1010Boost Software License - Version 1.0 - August 17th, 2003
1111
@@ -70,7 +70,7 @@ namespace osmium {
7070
7171 struct location_to_ring_map {
7272 osmium::Location location;
73- open_ring_its_type::iterator ring_it{} ;
73+ open_ring_its_type::iterator ring_it;
7474 bool start{false };
7575
7676 location_to_ring_map (osmium::Location l, open_ring_its_type::iterator r, const bool s) noexcept :
@@ -217,7 +217,7 @@ namespace osmium {
217217 }
218218 }
219219
220- for (const osmium::Way* way : ways_in_multiple_rings) {
220+ for (const osmium::Way* way : ways_in_multiple_rings) { // NOLINT(bugprone-nondeterministic-pointer-iteration-order)
221221 ++m_stats.ways_in_multiple_rings ;
222222 if (debug ()) {
223223 std::cerr << " Way " << way->id () << " is in multiple rings\n " ;
@@ -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 ;
@@ -362,7 +362,7 @@ namespace osmium {
362362 }
363363 if (segment->ring ()->is_outer ()) {
364364 const double y = static_cast <double >(ay) +
365- static_cast <double >((by - ay) * (lx - ax)) / static_cast <double >(bx - ax);
365+ ( static_cast <double >((by - ay) * (lx - ax)) / static_cast <double >(bx - ax) );
366366 if (debug ()) {
367367 std::cerr << " Segment belongs to outer ring (y=" << y << " ring=" << *segment->ring () << " )\n " ;
368368 }
@@ -703,7 +703,7 @@ namespace osmium {
703703
704704 struct candidate {
705705 int64_t sum;
706- std::vector<std::pair<location_to_ring_map, bool >> rings{} ;
706+ std::vector<std::pair<location_to_ring_map, bool >> rings;
707707 osmium::Location start_location;
708708 osmium::Location stop_location;
709709
0 commit comments