[Tile-serving] [osm2pgsql-dev/osm2pgsql] Various cleanups around "const" (PR #2350)

Jochen Topf notifications at github.com
Sat Jul 5 15:04:38 UTC 2025


See individual commits.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2350

-- Commit Summary --

  * Use cbegin()/cend() instead of begin()/end() to signal const use
  * Use const (ref) variables for loops where possible
  * Use east const consistently
  * constexpr const is redundant

-- File Changes --

    M src/db-copy.cpp (2)
    M src/expire-tiles.cpp (6)
    M src/gen/osm2pgsql-gen.cpp (2)
    M src/gen/tracer.hpp (2)
    M src/geom-area-assembler.cpp (10)
    M src/geom-area-assembler.hpp (6)
    M src/geom-from-osm.cpp (6)
    M src/geom-functions.cpp (6)
    M src/geom-pole-of-inaccessibility.cpp (8)
    M src/geom-pole-of-inaccessibility.hpp (2)
    M src/geom.hpp (2)
    M src/hex.cpp (4)
    M src/idlist.cpp (2)
    M src/middle-pgsql.cpp (12)
    M src/node-locations.cpp (2)
    M src/node-locations.hpp (2)
    M src/ordered-index.hpp (2)
    M src/osm2pgsql.cpp (4)
    M src/output-flex.cpp (8)
    M src/output-pgsql.cpp (2)
    M src/pgsql.hpp (2)
    M src/tagtransform-c.cpp (2)
    M src/thread-pool.hpp (2)
    M src/tile.hpp (9)
    M src/wkb.cpp (2)
    M tests/common-import.hpp (6)
    M tests/test-expire-from-geometry.cpp (2)
    M tests/test-expire-tiles.cpp (22)
    M tests/test-middle.cpp (19)
    M tests/test-options-parse.cpp (4)
    M tests/test-ordered-index.cpp (8)
    M tests/test-output-flex-nodes.cpp (2)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2350.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2350.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2350
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2350 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250705/06a433a7/attachment.htm>


More information about the Tile-serving mailing list