add const keywords where possible
This commit is contained in:
parent
66b038a010
commit
3e49bf4f42
@ -316,8 +316,8 @@ class MapMatching final : public BasicRoutingInterface<DataFacadeT, MapMatching<
|
|||||||
matching.indices.resize(reconstructed_indices.size());
|
matching.indices.resize(reconstructed_indices.size());
|
||||||
for (const auto i : osrm::irange<std::size_t>(0u, reconstructed_indices.size()))
|
for (const auto i : osrm::irange<std::size_t>(0u, reconstructed_indices.size()))
|
||||||
{
|
{
|
||||||
auto timestamp_index = reconstructed_indices[i].first;
|
const auto timestamp_index = reconstructed_indices[i].first;
|
||||||
auto location_index = reconstructed_indices[i].second;
|
const auto location_index = reconstructed_indices[i].second;
|
||||||
|
|
||||||
matching.indices[i] = timestamp_index;
|
matching.indices[i] = timestamp_index;
|
||||||
matching.nodes[i] = candidates_list[timestamp_index][location_index].first;
|
matching.nodes[i] = candidates_list[timestamp_index][location_index].first;
|
||||||
|
Loading…
Reference in New Issue
Block a user