Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mjjbell committed Mar 24, 2024
1 parent e1aecf2 commit c5d3c65
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/partitioner/partitioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ int Partitioner::Run(const PartitionerConfig &config)
renumber(maneuver_overrides, permutation);
renumber(node_sequences, permutation);

// Although the vector is already sorted, the rename function changes the identifiers, so the order is not sorted now.
// So we sort by `from_node` again, so that later lookups can be done with a binary search.
// Although the vector is already sorted, the rename function changes the identifiers, so
// the order is not sorted now. So we sort by `from_node` again, so that later lookups can
// be done with a binary search.
std::sort(maneuver_overrides.begin(),
maneuver_overrides.end(),
[](const auto &a, const auto &b) { return a.start_node < b.start_node; });
maneuver_overrides.end(),
[](const auto &a, const auto &b) { return a.start_node < b.start_node; });

extractor::files::writeManeuverOverrides(filename, maneuver_overrides, node_sequences);
}
if (boost::filesystem::exists(config.GetPath(".osrm.hsgr")))
Expand Down

0 comments on commit c5d3c65

Please sign in to comment.