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

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBufferList.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/modules/mediasource/SourceBufferList.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
index e689f7925dbb7e863d197a893ad808516b1fd533..0480481713247f8060e5ab38283919ebae9eaa7a 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
@@ -56,7 +56,7 @@ void SourceBufferList::remove(SourceBuffer* buffer) {
size_t index = m_list.find(buffer);
if (index == kNotFound)
return;
- m_list.remove(index);
+ m_list.erase(index);
scheduleEvent(EventTypeNames::removesourcebuffer);
}

Powered by Google App Engine
This is Rietveld 408576698