From 6de45320d1a5156b63d7f34b2f9af3e51d0ad89a Mon Sep 17 00:00:00 2001 From: Carsten Hagelgans <52030581+carstenhagelgans@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:28:11 +0100 Subject: [PATCH] updated transfers; updated capture-list --- .pkg | 2 +- modules/nigiri/src/nigiri.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pkg b/.pkg index 2dcf22dbf..bc499873a 100644 --- a/.pkg +++ b/.pkg @@ -77,7 +77,7 @@ [transfers] url=git@github.com:motis-project/transfers.git branch=main - commit=e00289ff6c6ab9f26f0585a031e281f01b8f93ae + commit=0b98c6b1e326e9177d589cf14ae9a1f6193076c3 [utl] url=git@github.com:motis-project/utl.git branch=master diff --git a/modules/nigiri/src/nigiri.cc b/modules/nigiri/src/nigiri.cc index 2f09c9de2..2ecb88225 100644 --- a/modules/nigiri/src/nigiri.cc +++ b/modules/nigiri/src/nigiri.cc @@ -191,9 +191,9 @@ void nigiri::init(motis::module::registry& reg) { {}); if (!impl_->tt_->get()->profiles_.empty()) { - for (auto [prf_name, prf_idx] : impl_->tt_->get()->profiles_) { + for (auto const& [prf_name, prf_idx] : impl_->tt_->get()->profiles_) { reg.register_op(fmt::format("/nigiri/{}", prf_name), - [this, &prf_idx](mm::msg_ptr const& msg) { + [&, this](mm::msg_ptr const& msg) { return route(impl_->tags_, **impl_->tt_, impl_->get_rtt().get(), msg, prf_idx); },