Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1319752 - Converts for(...; ...; ...) loops to use the new range-…
Browse files Browse the repository at this point in the history
…based loops in C++11 in startupcache/. r=froydnj

MozReview-Commit-ID: G0hV6yoZIVg
  • Loading branch information
abpostelnicu committed Nov 23, 2016
1 parent ee59359 commit e408233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions startupcache/StartupCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ StartupCache::WriteToDisk()
holder.writer = zipW;
holder.time = now;

for (auto key = mPendingWrites.begin(); key != mPendingWrites.end(); key++) {
CacheCloseHelper(*key, mTable.Get(*key), &holder);
for (auto& key : mPendingWrites) {
CacheCloseHelper(key, mTable.Get(key), &holder);
}
mPendingWrites.Clear();
mTable.Clear();
Expand Down

0 comments on commit e408233

Please sign in to comment.