File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 24
24
- NodeJS:
25
25
- CHANGED: Use node-api instead of NAN. [ #6452 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6452 )
26
26
- Misc:
27
+ - CHANGED: Avoid copy of vectors in MakeRoute function. [ #6939 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6939 )
27
28
- FIXED: Fix bugprone-unused-return-value clang-tidy warning. [ #6934 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6934 )
28
29
- FIXED: Fix performance-noexcept-move-constructor clang-tidy warning. [ #6931 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6933 )
29
30
- FIXED: Fix performance-noexcept-swap clang-tidy warning. [ #6931 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6931 )
Original file line number Diff line number Diff line change @@ -340,8 +340,8 @@ class RouteAPI : public BaseAPI
340
340
unpacked_path_segments,
341
341
source_traversed_in_reverse,
342
342
target_traversed_in_reverse);
343
- std::vector<guidance::RouteLeg> legs = legs_info.first ;
344
- std::vector<guidance::LegGeometry> leg_geometries = legs_info.second ;
343
+ std::vector<guidance::RouteLeg> & legs = legs_info.first ;
344
+ std::vector<guidance::LegGeometry> & leg_geometries = legs_info.second ;
345
345
auto route = guidance::assembleRoute (legs);
346
346
347
347
// Fill legs
@@ -716,8 +716,8 @@ class RouteAPI : public BaseAPI
716
716
unpacked_path_segments,
717
717
source_traversed_in_reverse,
718
718
target_traversed_in_reverse);
719
- std::vector<guidance::RouteLeg> legs = legs_info.first ;
720
- std::vector<guidance::LegGeometry> leg_geometries = legs_info.second ;
719
+ std::vector<guidance::RouteLeg> & legs = legs_info.first ;
720
+ std::vector<guidance::LegGeometry> & leg_geometries = legs_info.second ;
721
721
722
722
auto route = guidance::assembleRoute (legs);
723
723
boost::optional<util::json::Value> json_overview =
You can’t perform that action at this time.
0 commit comments