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

Unified Diff: third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 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
Index: third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
diff --git a/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp b/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
index 97c8269a0044d39c7457c6cb28b96cd39e5d080a..f85cd7a58cdc51686fb6ad28103fb395dfcf3cc8 100644
--- a/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
+++ b/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
@@ -97,7 +97,7 @@ bool TextTrackCueList::remove(TextTrackCue* cue) {
if (index == kNotFound)
return false;
- m_list.remove(index);
+ m_list.erase(index);
invalidateCueIndex(index);
cue->invalidateCueIndex();
return true;
« no previous file with comments | « third_party/WebKit/Source/core/html/track/CueTimeline.cpp ('k') | third_party/WebKit/Source/core/html/track/TextTrackList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698