diff --git a/Simulation/Tests/DigitizationTests/src/EventInfoTest.cxx b/Simulation/Tests/DigitizationTests/src/EventInfoTest.cxx index 6457d3aab0249b4cd460d2fe88ba4711d19b702c..fe951c92cf7e0f3c6144dbbe96f13b0cdd2bae53 100644 --- a/Simulation/Tests/DigitizationTests/src/EventInfoTest.cxx +++ b/Simulation/Tests/DigitizationTests/src/EventInfoTest.cxx @@ -45,7 +45,7 @@ StatusCode EventInfoTest::execute() { std::vector<xAOD::EventInfo::SubEvent>::const_iterator end = pevt->subEvents().end(); if (it == end) ATH_MSG_INFO("No xAOD::EventInfo::SubEvent found"); - for (auto sevt : pevt->subEvents()) { + for (const auto& sevt : pevt->subEvents()) { if (sevt.ptr() != NULL) { ATH_MSG_INFO("SubEvent info:"); ATH_MSG_INFO(" Time : " diff --git a/Simulation/Tests/DigitizationTests/src/EventInfoTestTool.cxx b/Simulation/Tests/DigitizationTests/src/EventInfoTestTool.cxx index 59fcf8c3e0b3c1c8459b8df7e624fe3fe38ddc0a..2e90d4482bfd44769f1bc27de350d44a7289eba6 100644 --- a/Simulation/Tests/DigitizationTests/src/EventInfoTestTool.cxx +++ b/Simulation/Tests/DigitizationTests/src/EventInfoTestTool.cxx @@ -47,7 +47,7 @@ StatusCode EventInfoTestTool::processEvent() { std::vector<xAOD::EventInfo::SubEvent>::const_iterator end = pevt->subEvents().end(); if (it == end) ATH_MSG_INFO("No xAOD::EventInfo::SubEvent found"); - for (auto sevt : pevt->subEvents()) { + for (const auto& sevt : pevt->subEvents()) { if (sevt.ptr() != NULL) { ATH_MSG_INFO("SubEvent info:"); ATH_MSG_INFO(" Time : "