From da077021126f2d8cba3aa9f93779d8a80adb37fa Mon Sep 17 00:00:00 2001 From: Pablo Hoch Date: Tue, 24 May 2022 16:49:32 +0200 Subject: [PATCH] rt: fix separate_trip spelling --- modules/rt/include/motis/rt/separate_trip.h | 6 +++--- modules/rt/src/rt_handler.cc | 4 ++-- modules/rt/test/trip_separation_test.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/rt/include/motis/rt/separate_trip.h b/modules/rt/include/motis/rt/separate_trip.h index e63ec48f4..126b69912 100644 --- a/modules/rt/include/motis/rt/separate_trip.h +++ b/modules/rt/include/motis/rt/separate_trip.h @@ -245,7 +245,7 @@ inline void update_event_uuids( } } -inline void seperate_trip(schedule& sched, ev_key const& k) { +inline void separate_trip(schedule& sched, ev_key const& k) { auto const in_out_allowed = get_route_in_out_allowed(k); auto const station_nodes = route_station_nodes(k); std::vector incoming; @@ -265,10 +265,10 @@ inline void seperate_trip(schedule& sched, ev_key const& k) { update_event_uuids(sched, k, edges, old_trip_edges); } -inline void seperate_trip(schedule& sched, trip const* trp) { +inline void separate_trip(schedule& sched, trip const* trp) { auto const first_dep = ev_key{trp->edges_->front().get_edge(), trp->lcon_idx_, event_type::DEP}; - seperate_trip(sched, first_dep); + separate_trip(sched, first_dep); } } // namespace motis::rt diff --git a/modules/rt/src/rt_handler.cc b/modules/rt/src/rt_handler.cc index 0a7b7e27c..7b1ae3877 100644 --- a/modules/rt/src/rt_handler.cc +++ b/modules/rt/src/rt_handler.cc @@ -190,7 +190,7 @@ void rt_handler::update(motis::ris::Message const* m) { } if (separate_trp != nullptr) { - seperate_trip(sched_, separate_trp); + separate_trip(sched_, separate_trp); resolved = resolve(); stats_.track_separations_++; } @@ -273,7 +273,7 @@ void rt_handler::propagate() { auto const trip_fit = fits_trip(sched_, k, t); if (!edge_fit || !trip_fit) { auto const trp = sched_.merged_trips_[k.lcon()->trips_]->front(); - seperate_trip(sched_, trp); + separate_trip(sched_, trp); if (!trip_fit) { trips_to_correct.insert(trp); diff --git a/modules/rt/test/trip_separation_test.cc b/modules/rt/test/trip_separation_test.cc index 939101f77..3cd4aacda 100644 --- a/modules/rt/test/trip_separation_test.cc +++ b/modules/rt/test/trip_separation_test.cc @@ -28,7 +28,7 @@ TEST_F(rt_trip_separation_test, simple) { EXPECT_EQ(t1_d1->edges_->at(0).get_edge(), t1_d2->edges_->at(0).get_edge()); EXPECT_EQ(t2_d1->edges_->at(0).get_edge(), t2_d2->edges_->at(0).get_edge()); - seperate_trip(*instance_ + separate_trip(*instance_ ->get( to_res_id(motis::module::global_res_id::SCHEDULE)) .schedule_,