Use pre-increment operator with iterators
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user