From 7b9bc25c5bd8ddaaa4c5e1225e131323d9762b64 Mon Sep 17 00:00:00 2001 From: Scott Snyder <scott.snyder@cern.ch> Date: Thu, 14 Mar 2024 11:27:38 +0100 Subject: [PATCH] AthenaMPTools: Fix cppcheck warning. AthenaMPTools: Fix cppcheck warning. Copying value in range-for. --- Control/AthenaMPTools/src/AthenaMPToolBase.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Control/AthenaMPTools/src/AthenaMPToolBase.cxx b/Control/AthenaMPTools/src/AthenaMPToolBase.cxx index b7fd36a51a1f..3c4bb4503111 100644 --- a/Control/AthenaMPTools/src/AthenaMPToolBase.cxx +++ b/Control/AthenaMPTools/src/AthenaMPToolBase.cxx @@ -1,5 +1,5 @@ /* - 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" @@ -209,7 +209,7 @@ void AthenaMPToolBase::setRandString(const std::string& randStr) void AthenaMPToolBase::killChildren() { - for(auto child : m_processGroup->getChildren()) { + for(const AthenaInterprocess::Process& child : m_processGroup->getChildren()) { kill(child.getProcessID(),SIGKILL); } } -- GitLab