Skip to content

Commit 649659d

Browse files
committed
added const references for non-modified iterators
1 parent 6aaf7c1 commit 649659d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/Tasks/Strangeness/strangenessInJets.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ struct StrangenessInJets {
11071107
std::vector<TVector3> ue1;
11081108
std::vector<TVector3> ue2;
11091109

1110-
for (auto& jet : jets) {
1110+
for (const auto& jet : jets) {
11111111

11121112
// jet must be fully contained in the acceptance
11131113
if ((std::fabs(jet.eta()) + rJet) > (etaMax - deltaEtaEdge))
@@ -2095,7 +2095,7 @@ struct StrangenessInJets {
20952095
std::vector<TVector3> ue1;
20962096
std::vector<TVector3> ue2;
20972097

2098-
for (auto& jet : jets) {
2098+
for (const auto& jet : jets) {
20992099

21002100
// jet must be fully contained in the acceptance
21012101
if ((std::fabs(jet.eta()) + rJet) > (etaMax - deltaEtaEdge))

0 commit comments

Comments
 (0)