Fix formatting

This commit is contained in:
Michael Krasnyk 2018-01-19 12:38:14 +01:00
parent 26f0b4dc77
commit a7f1cd36fb

View File

@ -89,9 +89,9 @@ class RouteAPI : public BaseAPI
util::json::Array annotations_store;
annotations_store.values.reserve(leg.annotations.size());
for (const auto& step : leg.annotations)
for (const auto &step : leg.annotations)
{
annotations_store.values.push_back(Get(step));
annotations_store.values.push_back(Get(step));
}
return annotations_store;
@ -305,7 +305,7 @@ class RouteAPI : public BaseAPI
nodes.values.reserve(leg_geometry.osm_node_ids.size());
for (const auto node_id : leg_geometry.osm_node_ids)
{
nodes.values.push_back(static_cast<std::uint64_t>(node_id));
nodes.values.push_back(static_cast<std::uint64_t>(node_id));
}
annotation.values["nodes"] = std::move(nodes);
}