Skip to content

Commit 27edd52

Browse files
Pass osm_node_ids by reference in osrm::updater::Updater class
1 parent 0081672 commit 27edd52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)