diff --git a/Calorimeter/CaloExample/CaloTests/src/MyAnalysisCal.cxx b/Calorimeter/CaloExample/CaloTests/src/MyAnalysisCal.cxx index c593491334e8ce02362c50076be67c552bf54ce4..d295484870feaaf2d1917ddb378763b9621b1c52 100644 --- a/Calorimeter/CaloExample/CaloTests/src/MyAnalysisCal.cxx +++ b/Calorimeter/CaloExample/CaloTests/src/MyAnalysisCal.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include "CaloTests/AnalysisCal.h" @@ -103,7 +103,7 @@ namespace MyAnalysisCal { double etot_cal=0; nhit_tot=0; - for (const SG::ReadHandleKey<CaloCalibrationHitContainer> k : m_calibHitContainerNames) + for (const SG::ReadHandleKey<CaloCalibrationHitContainer>& k : m_calibHitContainerNames) { SG::ReadHandle<CaloCalibrationHitContainer> calocalibrationhit_container (k, ctx); for (const CaloCalibrationHit* calibhit : *calocalibrationhit_container) {