Skip to content

Commit 73571c2

Browse files
committed
Use of const in non-modified iterators in range-based for loops
1 parent 90375ff commit 73571c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGLF/Tasks/Strangeness/strangenessInJetsIons.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ struct StrangenessInJetsIons {
22362236

22372237
// ------------------------------------------------
22382238
// --- Generated hadrons in reconstructed jets ----
2239-
for (auto& particle : mcParticlesPerColl) {
2239+
for (const auto& particle : mcParticlesPerColl) {
22402240
if (!particle.isPhysicalPrimary() || std::abs(particle.eta()) > 0.8)
22412241
continue;
22422242

0 commit comments

Comments
 (0)