From 20f30074c5212914ece343290ac8b2d55e365523 Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Sun, 14 Jul 2024 22:02:32 +0200 Subject: [PATCH] clang --- tests/tests/api/ReactionStatisticsTiming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests/api/ReactionStatisticsTiming.cpp b/tests/tests/api/ReactionStatisticsTiming.cpp index a237b5bf..db02a537 100644 --- a/tests/tests/api/ReactionStatisticsTiming.cpp +++ b/tests/tests/api/ReactionStatisticsTiming.cpp @@ -126,7 +126,7 @@ TEST_CASE("Testing reaction statistics timing", "[api][reactionstatistics][timin auto make_delta = [](const std::vector>& events) { std::vector delta_events; auto first = events.front().second; - for (auto& event : events) { + for (const auto& event : events) { auto delta = event.second - first; auto units = test_util::round_to_test_units(delta / scale).count(); delta_events.push_back(event.first + " @ Step " + std::to_string(units));