From e0eb5bcdce2b711b80f74f88652c305b85766f21 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:32:20 -0700 Subject: [PATCH] Fix clang-tidy error --- Source/ablastr/fields/MultiFabRegister.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/ablastr/fields/MultiFabRegister.cpp b/Source/ablastr/fields/MultiFabRegister.cpp index 25b0505e197..c290266176e 100644 --- a/Source/ablastr/fields/MultiFabRegister.cpp +++ b/Source/ablastr/fields/MultiFabRegister.cpp @@ -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; + } } }