From c1894242231b5537cf766c6f0081a6a5a44f8831 Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Tue, 30 Apr 2024 11:07:23 +1000 Subject: [PATCH] clang-tidy --- src/extension/ChronoController.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/ChronoController.hpp b/src/extension/ChronoController.hpp index 812c46c8..28ee8e90 100644 --- a/src/extension/ChronoController.hpp +++ b/src/extension/ChronoController.hpp @@ -116,7 +116,7 @@ namespace extension { } break; case message::TimeTravel::Action::NEAREST: { - clock::time_point nearest = + const clock::time_point nearest = tasks.empty() ? travel.target : std::min(travel.target, std::min_element(tasks.begin(), tasks.end())->time); clock::set_clock(nearest, travel.rtf);