From ce03f129df5968c195af816cabf73149ca987906 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Wed, 13 Jan 2021 10:56:26 -0500 Subject: [PATCH] InDetAlignmentMonitoring: Fix clang warnings. Don't use references in a range-for if the object must be copised. --- .../InDetAlignmentMonitoring/src/IDAlignMonPVBiases.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InnerDetector/InDetMonitoring/InDetAlignmentMonitoring/src/IDAlignMonPVBiases.cxx b/InnerDetector/InDetMonitoring/InDetAlignmentMonitoring/src/IDAlignMonPVBiases.cxx index 26fe30499850..f544df41bb68 100644 --- a/InnerDetector/InDetMonitoring/InDetAlignmentMonitoring/src/IDAlignMonPVBiases.cxx +++ b/InnerDetector/InDetMonitoring/InDetAlignmentMonitoring/src/IDAlignMonPVBiases.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ // ********************************************************************** @@ -526,7 +526,7 @@ StatusCode IDAlignMonPVBiases::fillHistograms() *******************************************************************/ for (; track_itr!=track_itrE; ++track_itr) { const xAOD::Vertex* foundVertex = nullptr; - for (const auto& vx : *vertices) + for (const auto vx : *vertices) { for (const auto& tpLink : vx->trackParticleLinks()) { -- GitLab