Skip to content

Commit

Permalink
gtfs_resolve_run: prevent temporary allocation / copy
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 14, 2024
1 parent bf6712f commit ac2e15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rt/gtfsrt_resolve_run.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void resolve_static(date::sys_days const today,
[&](pair<trip_id_idx_t, trip_idx_t> const& a, string const& b) {
return std::tuple(tt.trip_id_src_[a.first],
tt.trip_id_strings_[a.first].view()) <
std::tuple(src, std::string_view{b});
std::tuple(src, b.view());
});

auto const start_date = td.has_start_date()
Expand Down

0 comments on commit ac2e15d

Please sign in to comment.