Skip to content

Commit

Permalink
Fix clang-tidy error
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Sep 18, 2024
1 parent 020088c commit e0eb5bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/ablastr/fields/MultiFabRegister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,11 @@ namespace ablastr::fields
// C++20: Replace with std::erase_if
for (auto first = m_mf_register.begin(), last = m_mf_register.end(); first != last;)
{
if (first->second.m_level == level)
if (first->second.m_level == level) {
first = m_mf_register.erase(first);
else
} else {
++first;
}
}
}

Expand Down

0 comments on commit e0eb5bc

Please sign in to comment.