Bug 1319752 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in startupcache/. r=froydnj
MozReview-Commit-ID: G0hV6yoZIVg
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user