We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f78d2 commit 7eff476Copy full SHA for 7eff476
PWGLF/Tasks/Resonances/cksspinalignder.cxx
@@ -529,7 +529,7 @@ struct cksspinalignder {
529
530
std::vector<MatchRef> subset;
531
subset.reserve(cap);
532
- for (int idx : chosen)
+ for (const int& idx : chosen)
533
subset.push_back(matches[idx]);
534
matches.swap(subset);
535
} else {
@@ -769,7 +769,7 @@ struct MixBinnerK0 {
769
770
771
772
- for (int idx : chosen) subset.push_back(matches[idx]);
+ for (const int& idx : chosen) subset.push_back(matches[idx]);
773
774
775
std::shuffle(matches.begin(), matches.end(), rng);
0 commit comments