Skip to content

Commit f89adfa

Browse files
Use constant references for non-modified iterators in range-based for loops
1 parent 8733895 commit f89adfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGLF/Tasks/QC/findableStudy.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ struct findableStudy {
261261
bool hasBeenFound = false;
262262
int nCandidatesWithTPC = 0;
263263

264-
for (auto& recv0 : recv0s) {
264+
for (const auto& recv0 : recv0s) {
265265
if (recv0.v0Type() != 1)
266266
continue; // skip anything other than a standard V0
267267

0 commit comments

Comments
 (0)