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.
2 parents 5b773b1 + d7a9ee2 commit 71a47d0Copy full SHA for 71a47d0
1 file changed
src/geom-from-osm.cpp
@@ -41,6 +41,7 @@ static bool fill_point_list(point_list_t *list,
41
{
42
osmium::Location last{};
43
44
+ list->reserve(nodes.size());
45
for (auto const &node : nodes) {
46
auto const loc = node.location();
47
if (loc.valid() && loc != last) {
0 commit comments