Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp

Issue 610273005: Use auto and Range-based loop interation in Source/core/dom/custom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/custom/CustomElementRegistrationContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp
diff --git a/Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp b/Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp
index 8241e7727c1d030841fa3d25541dc707a470c2cd..6850f6462a80177d4f05f2e7c4d0e3c39958035b 100644
--- a/Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp
+++ b/Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp
@@ -103,9 +103,9 @@ PassOwnPtrWillBeRawPtr<CustomElementUpgradeCandidateMap::ElementSet> CustomEleme
if (!candidates)
return nullptr;
- for (ElementSet::const_iterator candidate = candidates->begin(); candidate != candidates->end(); ++candidate) {
- unobserve(*candidate);
- m_upgradeCandidates.remove(*candidate);
+ for (const auto& candidate : *candidates) {
+ unobserve(candidate);
+ m_upgradeCandidates.remove(candidate);
}
return candidates.release();
}
« no previous file with comments | « Source/core/dom/custom/CustomElementRegistrationContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698