Skip to content
Snippets Groups Projects
Commit d9634879 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

MuonEventTPCnv: Fix clang 10 warning.

Avoid spurious object copy in range for.
parent 9ef52192
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!34563EventInfo+xAODTau+TrigConfIO+MuonEventTPCnv: Fix clang 10 warnings.
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
#include "MuonEventTPCnv/MuonRDO/MM_RawDataContainerCnv_p1.h" #include "MuonEventTPCnv/MuonRDO/MM_RawDataContainerCnv_p1.h"
...@@ -40,7 +40,7 @@ void Muon::MM_RawDataContainerCnv_p1::persToTrans(const Muon::MM_RawDataContain ...@@ -40,7 +40,7 @@ void Muon::MM_RawDataContainerCnv_p1::persToTrans(const Muon::MM_RawDataContain
if (DEBUG) log<<MSG::VERBOSE<<"MM_RawDataContainerCnv_p1::persToTrans with MM_RawDataContainer_p1 with this many collections "<<numColl<<std::endl; if (DEBUG) log<<MSG::VERBOSE<<"MM_RawDataContainerCnv_p1::persToTrans with MM_RawDataContainer_p1 with this many collections "<<numColl<<std::endl;
MM_RawDataCollection* coll = nullptr; MM_RawDataCollection* coll = nullptr;
for ( const MM_RawDataCollection_p1 collection : *persCont){ for ( const MM_RawDataCollection_p1& collection : *persCont){
coll = new MM_RawDataCollection(collection.m_idHash); coll = new MM_RawDataCollection(collection.m_idHash);
if ( transCont->addCollection(coll,collection.m_idHash).isFailure() ) { if ( transCont->addCollection(coll,collection.m_idHash).isFailure() ) {
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
#include "MuonEventTPCnv/MuonRDO/STGC_RawDataContainerCnv_p1.h" #include "MuonEventTPCnv/MuonRDO/STGC_RawDataContainerCnv_p1.h"
...@@ -39,7 +39,7 @@ void Muon::STGC_RawDataContainerCnv_p1::persToTrans(const Muon::STGC_RawDataCon ...@@ -39,7 +39,7 @@ void Muon::STGC_RawDataContainerCnv_p1::persToTrans(const Muon::STGC_RawDataCon
if (DEBUG) log<<MSG::VERBOSE<<"STGC_RawDataContainerCnv_p1::persToTrans with STGC_RawDataContainer_p1 with this many collections "<<numColl<<std::endl; if (DEBUG) log<<MSG::VERBOSE<<"STGC_RawDataContainerCnv_p1::persToTrans with STGC_RawDataContainer_p1 with this many collections "<<numColl<<std::endl;
STGC_RawDataCollection* coll = nullptr; STGC_RawDataCollection* coll = nullptr;
for ( const STGC_RawDataCollection_p1 collection : *persCont){ for ( const STGC_RawDataCollection_p1& collection : *persCont){
coll = new STGC_RawDataCollection(collection.m_idHash); coll = new STGC_RawDataCollection(collection.m_idHash);
if ( transCont->addCollection(coll,collection.m_idHash).isFailure() ) { if ( transCont->addCollection(coll,collection.m_idHash).isFailure() ) {
log << MSG::WARNING << "Could not add the sTGC collection during persistent->transient conversion" << std::endl; log << MSG::WARNING << "Could not add the sTGC collection during persistent->transient conversion" << std::endl;
......
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