Chromium Code Reviews| Index: base/files/file_path_watcher_linux.cc |
| diff --git a/base/files/file_path_watcher_linux.cc b/base/files/file_path_watcher_linux.cc |
| index 205a3eb779fbff1127a5c71657d86fa05130447a..93930f688c6b97a734cb696366823c0a1d6fed92 100644 |
| --- a/base/files/file_path_watcher_linux.cc |
| +++ b/base/files/file_path_watcher_linux.cc |
| @@ -373,8 +373,8 @@ bool FilePathWatcherImpl::Watch(const FilePath& path, |
| std::vector<FilePath::StringType> comps; |
| target_.GetComponents(&comps); |
| DCHECK(!comps.empty()); |
| - for (std::vector<FilePath::StringType>::const_iterator comp(++comps.begin()); |
| - comp != comps.end(); ++comp) { |
| + std::vector<FilePath::StringType>::const_iterator comp = comps.begin(); |
| + for (comp++; comp != comps.end(); comp++) { |
|
Mattias Nissler (ping if slow)
2012/08/27 12:53:02
Style guide says to use preincrement: http://googl
|
| watches_.push_back(WatchEntry(InotifyReader::kInvalidWatch, *comp)); |
| } |
| watches_.push_back(WatchEntry(InotifyReader::kInvalidWatch, |