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

Unified Diff: third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp

Issue 2556043002: Avoid WTF::Vector::at() and operator[] in core/html. (Closed)
Patch Set: _ Created 4 years 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
Index: third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp
diff --git a/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp b/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp
index 3630fc508e83aa2fdb49bede2fba214a56d57cd7..3db9fae10dec36247579443a7ce76a21e1d918ff 100644
--- a/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp
+++ b/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp
@@ -150,9 +150,7 @@ void MediaFragmentURIParser::parseTimeFragment() {
m_timeFormat = Invalid;
- for (unsigned i = 0; i < m_fragments.size(); ++i) {
- std::pair<String, String>& fragment = m_fragments[i];
-
+ for (const auto& fragment : m_fragments) {
DCHECK(fragment.first.is8Bit());
DCHECK(fragment.second.is8Bit());
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp ('k') | third_party/WebKit/Source/core/html/PublicURLManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698