[Tile-serving] [openstreetmap/osm2pgsql] Misc code cleanups (PR #1657)

Jochen Topf notifications at github.com
Wed Mar 16 13:33:11 UTC 2022


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

  https://github.com/openstreetmap/osm2pgsql/pull/1657

-- Commit Summary --

  * Use unsigned int for bit operations
  * Use raw string literals in several places to avoid quoting
  * Prefer std::array instead of plain C arrays
  * Modernize code: Use value parameter and std::move()
  * Mutable parameter as ptr not ref
  * Fix ub: Bit operation on signed integer

-- File Changes --

    M src/db-copy-mgr.hpp (8)
    M src/db-copy.hpp (4)
    M src/expire-tiles.cpp (6)
    M src/expire-tiles.hpp (2)
    M src/flex-table-column.cpp (2)
    M src/flex-table.cpp (4)
    M src/gazetteer-style.cpp (7)
    M src/gazetteer-style.hpp (34)
    M src/output-flex.cpp (5)
    M src/pgsql-helper.cpp (2)
    M src/table.cpp (8)
    M tests/test-middle.cpp (4)
    M tests/test-output-flex-types.cpp (11)
    M tests/test-output-flex-way-add.cpp (4)
    M tests/test-output-flex-way-change.cpp (4)
    M tests/test-output-flex-way-del.cpp (4)
    M tests/test-output-flex-way-relation-add.cpp (4)
    M tests/test-output-flex-way-relation-del.cpp (4)
    M tests/test-output-pgsql-z_order.cpp (6)
    M tests/test-persistent-cache.cpp (10)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1657.patch
https://github.com/openstreetmap/osm2pgsql/pull/1657.diff

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

Message ID: <openstreetmap/osm2pgsql/pull/1657 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220316/8b316ff4/attachment.htm>


More information about the Tile-serving mailing list