Skip to content

Commit

Permalink
[DOR-960] Add more constness
Browse files Browse the repository at this point in the history
  • Loading branch information
malton-ont committed Nov 21, 2024
1 parent 72b117b commit 9b60e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dorado/demux/BarcodeClassifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,10 +889,10 @@ BarcodeScoreResult BarcodeClassifier::find_best_barcode(
// are the same. If they suggest different barcodes confidently, then
// consider the read unclassified.
const auto best_top_result = std::min_element(
results.begin(), results.end(),
results.cbegin(), results.cend(),
[](const auto& l, const auto& r) { return l.top_penalty < r.top_penalty; });
const auto best_bottom_result = std::min_element(
results.begin(), results.end(),
results.cbegin(), results.cend(),
[](const auto& l, const auto& r) { return l.bottom_penalty < r.bottom_penalty; });
const auto max_penalty =
std::max(best_top_result->top_penalty, best_bottom_result->bottom_penalty);
Expand Down

0 comments on commit 9b60e31

Please sign in to comment.