From 09d5b39208954490f1fc6fb44c17c50f036fab10 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 22 Sep 2023 11:07:55 +0200 Subject: [PATCH] Add consts --- src/gen/osm2pgsql-gen.cpp | 2 +- src/gen/tracer.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gen/osm2pgsql-gen.cpp b/src/gen/osm2pgsql-gen.cpp index 31cbaa50b..4c3ad12f4 100644 --- a/src/gen/osm2pgsql-gen.cpp +++ b/src/gen/osm2pgsql-gen.cpp @@ -272,7 +272,7 @@ void run_tile_gen(std::string const &conninfo, gen_base_t *master_generalizer, queue->pop_back(); } - tile_t tile{zoom, p.first, p.second}; + tile_t const tile{zoom, p.first, p.second}; log_debug("Processing tile {}/{}/{}...", tile.zoom(), tile.x(), tile.y()); generalizer->process(tile); diff --git a/src/gen/tracer.cpp b/src/gen/tracer.cpp index e0bcddcad..c7a2c1367 100644 --- a/src/gen/tracer.cpp +++ b/src/gen/tracer.cpp @@ -26,8 +26,9 @@ tracer_t::trace(canvas_t const &canvas, tile_t const &tile, double min_area) { prepare(canvas); - potrace_bitmap_t bitmap{int(canvas.size()), int(canvas.size()), - int(canvas.size() / bits_per_word), m_bits.data()}; + potrace_bitmap_t const bitmap{int(canvas.size()), int(canvas.size()), + int(canvas.size() / bits_per_word), + m_bits.data()}; std::unique_ptr state{ potrace_trace(m_param.get(), &bitmap)};