Skip to content
Snippets Groups Projects
Commit f3df4dad authored by Adam Edward Barton's avatar Adam Edward Barton :speech_balloon:
Browse files

Merge branch 'clang10.PyAnalysisCore-20200719' into 'master'

PyAnalysisCore: Fix clang 10 warning.

See merge request atlas/athena!34907
parents 302692dd c04b1c7c
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-2020 CERN for the benefit of the ATLAS collaboration
*/ */
#ifndef PYANALYSISCORE_PYDATAHEADER_H #ifndef PYANALYSISCORE_PYDATAHEADER_H
...@@ -73,17 +73,15 @@ public: ...@@ -73,17 +73,15 @@ public:
// look for non-symlink name // look for non-symlink name
std::string name=""; std::string name="";
std::set<CLID>::iterator itCLID = ((*it)->getClassIDs()).begin(); for (CLID clid : (*it)->getClassIDs())
std::set<CLID>::iterator itCLIDe = ((*it)->getClassIDs()).end();
for (; itCLID != itCLIDe; ++itCLID)
{ {
// convert CLID to class name // convert CLID to class name
std::string localName; std::string localName;
StatusCode sc = m_classIDSvc->getTypeNameOfID (*itCLID, localName); StatusCode sc = m_classIDSvc->getTypeNameOfID (clid, localName);
if (sc.isFailure()) if (sc.isFailure())
{ {
MsgStream log(Athena::getMessageSvc(), "PyDataHeader"); MsgStream log(Athena::getMessageSvc(), "PyDataHeader");
log << MSG::ERROR << "could not get TypeName for " << *itCLID << endmsg; log << MSG::ERROR << "could not get TypeName for " << clid << endmsg;
return ""; return "";
} }
// select non-symlink // select non-symlink
......
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