Skip to content

Commit f19247a

Browse files
Pass osm_node_ids by reference in osrm::updater::Updater class (#6298)
1 parent e7185b4 commit f19247a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- FIXED: Use Boost.Beast to parse HTTP request. [#6294](https://github.com/Project-OSRM/osrm-backend/pull/6294)
55
- FIXED: Fix inefficient osrm-routed connection handling [#6113](https://github.com/Project-OSRM/osrm-backend/pull/6113)
66
- Misc:
7+
- CHANGED: Pass osm_node_ids by reference in osrm::updater::Updater class. [#6298](https://github.com/Project-OSRM/osrm-backend/pull/6298)
78
- FIXED: Fix bug with reading Set values from Lua scripts. [#6285](https://github.com/Project-OSRM/osrm-backend/pull/6285)
89
- Build:
910
- CHANGED: Configure Undefined Behaviour Sanitizer. [#6290](https://github.com/Project-OSRM/osrm-backend/pull/6290)

src/updater/updater.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ updateSegmentData(const UpdaterConfig &config,
144144
const SegmentLookupTable &segment_speed_lookup,
145145
extractor::SegmentDataContainer &segment_data,
146146
std::vector<util::Coordinate> &coordinates,
147-
extractor::PackedOSMIDs &osm_node_ids)
147+
const extractor::PackedOSMIDs &osm_node_ids)
148148
{
149149
// vector to count used speeds for logging
150150
// size offset by one since index 0 is used for speeds not from external file
@@ -422,7 +422,7 @@ updateTurnPenalties(const UpdaterConfig &config,
422422
const TurnLookupTable &turn_penalty_lookup,
423423
std::vector<TurnPenalty> &turn_weight_penalties,
424424
std::vector<TurnPenalty> &turn_duration_penalties,
425-
extractor::PackedOSMIDs osm_node_ids)
425+
const extractor::PackedOSMIDs &osm_node_ids)
426426
{
427427
const auto weight_multiplier = profile_properties.GetWeightMultiplier();
428428

0 commit comments

Comments
 (0)