Modernize to C++11 : use auto.
This commit is contained in:
parent
7474e5ec28
commit
0cf7454d4b
6 changed files with 10 additions and 10 deletions
|
@ -160,7 +160,7 @@ void Index::SetTrigramsForFile(const FilePath& file_path,
|
|||
const Time& time) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
|
||||
FileId file_id = GetFileId(file_path);
|
||||
vector<Trigram>::const_iterator it = index.begin();
|
||||
auto it = index.begin();
|
||||
for (; it != index.end(); ++it) {
|
||||
Trigram trigram = *it;
|
||||
index_[trigram].push_back(file_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue