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/[email protected]>
_______________________________________________ Tile-serving mailing list [email protected] https://lists.openstreetmap.org/listinfo/tile-serving
