- // advance m_findIter before checking the value at the current position
- // as we need to do it anyhow, whether it matches or not
+ // test for the match before (possibly) clearing m_findArgument below
+ const bool found = m_findIter->first.Matches(m_findArgument);
+
+ // advance m_findIter first as we need to do it anyhow, whether it
+ // matches or not