Skip to content
Snippets Groups Projects
Verified Commit de270331 authored by Tadej Novak's avatar Tadej Novak
Browse files

Fix a minor leak in TRT_SimDriftTimeTool

parent 2692a10d
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
////////////////////////////////////
......@@ -71,10 +71,10 @@ StatusCode TRT_SimDriftTimeTool::initialize()
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////
std::vector<ITRT_DriftTimeData*> pDTData;
pDTData.push_back(new TRT_BarrelDriftTimeData(m_digversion,0)); // Xe straws
pDTData.push_back(new TRT_BarrelDriftTimeData(m_digversion,1)); // Kr straws
pDTData.push_back(new TRT_BarrelDriftTimeData(m_digversion,2)); // Ar straws
std::vector<std::unique_ptr<ITRT_DriftTimeData>> pDTData;
pDTData.emplace_back(std::make_unique<TRT_BarrelDriftTimeData>(m_digversion,0)); // Xe straws
pDTData.emplace_back(std::make_unique<TRT_BarrelDriftTimeData>(m_digversion,1)); // Kr straws
pDTData.emplace_back(std::make_unique<TRT_BarrelDriftTimeData>(m_digversion,2)); // Ar straws
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment