diff --git a/tests/tests/api/ReactionStatisticsTiming.cpp b/tests/tests/api/ReactionStatisticsTiming.cpp index a237b5bf7..db02a5371 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));