Skip to content

Commit

Permalink
Merge pull request #2114 from joto/add-const
Browse files Browse the repository at this point in the history
Add consts
  • Loading branch information
lonvia authored Dec 22, 2023
2 parents f6c9140 + 09d5b39 commit 672bc7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gen/osm2pgsql-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions src/gen/tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<potrace_state_t, potrace_state_deleter> state{
potrace_trace(m_param.get(), &bitmap)};
Expand Down

0 comments on commit 672bc7e

Please sign in to comment.