Skip to content
Snippets Groups Projects
Commit 21c88b5a authored by John Chapman's avatar John Chapman
Browse files

clang-tidy fixes for DigitizationTests package

parent 0b797424
No related branches found
No related tags found
No related merge requests found
......@@ -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 : "
......
......@@ -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 : "
......
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