[Tile-serving] [osm2pgsql-dev/osm2pgsql] Refactor: Use std::string not std::string_view (PR #2346)

Jochen Topf notifications at github.com
Wed Jun 25 20:38:30 UTC 2025


Because std::string guarantees that there is a \0 at the end which we need for the C interface of the PostgreSQL library.

Gets rid of clang-tidy warnings.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Refactor: Use std::string not std::string_view in copy_start()
  * Refactor: Use std::string not std::string_view in prepare()

-- File Changes --

    M src/db-copy.cpp (2)
    M src/gen/gen-base.cpp (4)
    M src/gen/gen-base.hpp (4)
    M src/middle-pgsql.cpp (2)
    M src/middle-pgsql.hpp (2)
    M src/pgsql.cpp (10)
    M src/pgsql.hpp (7)

-- Patch Links --

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

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

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2346 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250625/3f3b51ae/attachment.htm>


More information about the Tile-serving mailing list