Skip to content

Commit 5bfc554

Browse files
committed
fix auto to const auto &
1 parent d602110 commit 5bfc554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PWGHF/D2H/Tasks/taskD0.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ struct HfTaskD0 {
581581
if (rejectionMask != 0) {
582582
continue;
583583
}
584-
auto bc = collision.template bc_as<BCsType>();
584+
const auto& bc = collision.template bc_as<BCsType>();
585585

586586
// Determine gap type using SGSelector with BC range checking
587587
const auto gapResult = hf_upc::determineGapType(collision, bcs, upcThresholds);

PWGHF/D2H/Tasks/taskDplus.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ struct HfTaskDplus {
718718
/// at least one event selection not satisfied --> reject the candidate
719719
continue;
720720
}
721-
auto bc = collision.template bc_as<BCsType>();
721+
const auto& bc = collision.template bc_as<BCsType>();
722722

723723
// Determine gap type using SGSelector with BC range checking
724724
const auto gapResult = hf_upc::determineGapType(collision, bcs, upcThresholds);

0 commit comments

Comments
 (0)