From ac2e15dba2dfc8db981328134de11015f492ef65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Thu, 14 Nov 2024 13:59:56 +0100 Subject: [PATCH] gtfs_resolve_run: prevent temporary allocation / copy --- src/rt/gtfsrt_resolve_run.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rt/gtfsrt_resolve_run.cc b/src/rt/gtfsrt_resolve_run.cc index 90773d52..fa574198 100644 --- a/src/rt/gtfsrt_resolve_run.cc +++ b/src/rt/gtfsrt_resolve_run.cc @@ -40,7 +40,7 @@ void resolve_static(date::sys_days const today, [&](pair 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()