diff --git a/Trigger/TrigMonitoring/TrigMonitorBase/src/TrigGenericMonitoringTool.cxx b/Trigger/TrigMonitoring/TrigMonitorBase/src/TrigGenericMonitoringTool.cxx index ecf8882c31b9f8ee1084b65822c2b2d1065e59a0..59a2448f11ca34bbb2a32feeba9af03cd9d7f8ba 100755 --- a/Trigger/TrigMonitoring/TrigMonitorBase/src/TrigGenericMonitoringTool.cxx +++ b/Trigger/TrigMonitoring/TrigMonitorBase/src/TrigGenericMonitoringTool.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include <iostream> @@ -379,7 +379,7 @@ StatusCode TrigGenericMonitoringTool<M,P>::fillHists() { template <class M, class P> StatusCode TrigGenericMonitoringTool<M,P>::finalHists() { - for ( const auto i : m_histogramCategory ) { + for ( const auto& i : m_histogramCategory ) { delete i.second; } m_histogramCategory.clear();