+ // m_findArgument is used to indicate that search is in progress, we reset
+ // it to empty string after iterating over all elements
+ while ( !m_findArgument.empty() )
+ {
+ // advance m_findIter before checking the value at the current position
+ // as we need to do it anyhow, whether it matches or not
+ const wxMemoryFSHash::const_iterator current = m_findIter;
+
+ if ( ++m_findIter == m_Hash.end() )
+ m_findArgument.clear();
+
+ if ( current->first.Matches(m_findArgument) )
+ return current->first;
+ }