Use pre-increment operator with iterators

This commit is contained in:
Paul Cornett
2019-02-17 18:48:40 -08:00
parent 360342659b
commit 71972a5265
4 changed files with 6 additions and 6 deletions

View File

@@ -419,7 +419,7 @@ bool wxFsEventsFileSystemWatcher::RemoveAll()
FSEventStreamStop(it->second);
FSEventStreamInvalidate(it->second);
FSEventStreamRelease(it->second);
it++;
++it;
ret |= true;
}
m_streams.clear();
@@ -499,7 +499,7 @@ int wxFsEventsFileSystemWatcher::GetWatchedPaths(wxArrayString* paths) const
}
wxFileSystemWatcherBase::GetWatchedPaths(paths);
FSEventStreamRefMap::const_iterator it = m_streams.begin();
for ( ; it != m_streams.end(); it++ )
for ( ; it != m_streams.end(); ++it )
{
paths->push_back(it->first);
}