Skip to content

Commit 918900d

Browse files
committed
resolving warning from o2linter
1 parent b6c9718 commit 918900d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/TableProducer/qVectorsTable.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ struct qVectorsTable {
193193
for (DeviceSpec const& device : workflows.devices) {
194194
for (auto const& input : device.inputs) {
195195
if (input.matcher.binding == "Qvectors") {
196-
for (auto det : useDetector) {
196+
for (auto const& det : useDetector) {
197197
useDetector[det.first.data()] = true;
198198
}
199199
LOGF(info, "Using all detectors.");
200200
goto allDetectorsInUse; // Added to break from nested loop if all detectors are in use.
201201
}
202-
for (auto det : useDetector) {
202+
for (auto const& det : useDetector) {
203203
std::string table_name_with_vector = det.first; // for replacing s with Vecs at the end.
204204
if (input.matcher.binding == det.first || input.matcher.binding == table_name_with_vector.replace(table_name_with_vector.size() - 1, 1, "Vecs")) {
205205
useDetector[det.first.data()] = true;
@@ -470,7 +470,7 @@ struct qVectorsTable {
470470
int nTrkTPCneg = 0;
471471
int nTrkTPCall = 0;
472472

473-
for (auto& trk : track) {
473+
for (auto const& trk : track) {
474474
if (!SelTrack(trk)) {
475475
continue;
476476
}

0 commit comments

Comments
 (0)