We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b140cfb commit be4f803Copy full SHA for be4f803
1 file changed
src/geom-from-osm.cpp
@@ -135,7 +135,7 @@ geometry_t create_polygon(osmium::Way const &way,
135
136
void create_multipoint(geometry_t *geom, osmium::memory::Buffer const &buffer)
137
{
138
- auto nodes = buffer.select<osmium::Node>();
+ auto const nodes = buffer.select<osmium::Node>();
139
if (nodes.size() == 1) {
140
auto const location = nodes.cbegin()->location();
141
if (location.valid()) {
@@ -176,7 +176,7 @@ void create_multilinestring(geometry_t *geom,
176
osmium::memory::Buffer const &buffer,
177
bool force_multi)
178
179
- auto ways = buffer.select<osmium::Way>();
+ auto const ways = buffer.select<osmium::Way>();
180
if (ways.size() == 1 && !force_multi) {
181
auto &line = geom->set<linestring_t>();
182
auto const &way = *ways.cbegin();
0 commit comments