From a803a7131fbafb65128a49f2d44a3630fa21987c Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Fri, 10 Jul 2020 09:58:02 -0400
Subject: [PATCH] SiSPSeededTrackFinder: Fix clang10 warnings.

Avoid spurious copies in range for.
---
 .../SiSPSeededTrackFinder/src/SiSPSeededTrackFinder.cxx       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/InnerDetector/InDetRecAlgs/SiSPSeededTrackFinder/src/SiSPSeededTrackFinder.cxx b/InnerDetector/InDetRecAlgs/SiSPSeededTrackFinder/src/SiSPSeededTrackFinder.cxx
index 5aa4a2a13cc..64a0196d2fc 100644
--- a/InnerDetector/InDetRecAlgs/SiSPSeededTrackFinder/src/SiSPSeededTrackFinder.cxx
+++ b/InnerDetector/InDetRecAlgs/SiSPSeededTrackFinder/src/SiSPSeededTrackFinder.cxx
@@ -174,7 +174,7 @@ StatusCode InDet::SiSPSeededTrackFinder::oldStrategy(const EventContext& ctx) co
 
   // Save good tracks in track collection
   //
-  for (const std::pair<double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
+  for (const std::pair<const double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
     ++counter[kNTracks];
     if (m_trackSummaryTool.isEnabled()) {
        m_trackSummaryTool->computeAndReplaceTrackSummary(*(qualityAndTrack.second),
@@ -322,7 +322,7 @@ StatusCode InDet::SiSPSeededTrackFinder::newStrategy(const EventContext& ctx) co
   filterSharedTracks(qualitySortedTrackCandidates);
 
   /// Save good tracks in track collection
-  for (const std::pair<double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
+  for (const std::pair<const double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
     ++counter[kNTracks];
     if (m_trackSummaryTool.isEnabled()) {
       /// Note that for run-3 the tool here is configured to not perform a hole search,
-- 
GitLab