Skip to content
Snippets Groups Projects
Commit 7b9bc25c authored by Scott Snyder's avatar Scott Snyder Committed by Walter Lampl
Browse files

AthenaMPTools: Fix cppcheck warning.

AthenaMPTools: Fix cppcheck warning.

Copying value in range-for.
parent 523734ce
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/ */
#include "AthenaMPToolBase.h" #include "AthenaMPToolBase.h"
...@@ -209,7 +209,7 @@ void AthenaMPToolBase::setRandString(const std::string& randStr) ...@@ -209,7 +209,7 @@ void AthenaMPToolBase::setRandString(const std::string& randStr)
void AthenaMPToolBase::killChildren() void AthenaMPToolBase::killChildren()
{ {
for(auto child : m_processGroup->getChildren()) { for(const AthenaInterprocess::Process& child : m_processGroup->getChildren()) {
kill(child.getProcessID(),SIGKILL); kill(child.getProcessID(),SIGKILL);
} }
} }
......
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