[Tile-serving] [openstreetmap/osm2pgsql] Directly use std::string reference instead of calling c_str() (#1467)

Jochen Topf notifications at github.com
Thu Apr 29 08:49:49 UTC 2021


A `std::string` reference contains more information, specifically the length of the string which is lost when using `c_str()`. So it is better to keep working with a std::string reference where possible.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Directly use std::string reference instead of calling c_str()

-- File Changes --

    M src/expire-tiles.cpp (8)
    M src/expire-tiles.hpp (2)
    M src/output-flex.cpp (2)
    M src/output-pgsql.cpp (10)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1467
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210429/7c80ca5b/attachment.htm>


More information about the Tile-serving mailing list