Skip to content

Commit 7eff476

Browse files
author
Prottay Das
committed
updated2
1 parent f1f78d2 commit 7eff476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/Tasks/Resonances/cksspinalignder.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ struct cksspinalignder {
529529

530530
std::vector<MatchRef> subset;
531531
subset.reserve(cap);
532-
for (int idx : chosen)
532+
for (const int& idx : chosen)
533533
subset.push_back(matches[idx]);
534534
matches.swap(subset);
535535
} else {
@@ -769,7 +769,7 @@ struct MixBinnerK0 {
769769
770770
std::vector<MatchRef> subset;
771771
subset.reserve(cap);
772-
for (int idx : chosen) subset.push_back(matches[idx]);
772+
for (const int& idx : chosen) subset.push_back(matches[idx]);
773773
matches.swap(subset);
774774
} else {
775775
std::shuffle(matches.begin(), matches.end(), rng);

0 commit comments

Comments
 (0)