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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.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/platform/mediastream/MediaStreamDescriptor.cpp
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.cpp b/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.cpp
index 102122f69d7bb5953c30344fb0658be686cbbdfe..5a8f4474a9ff5eb79c4bb99c68c25b7fa2a7d7fe 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.cpp
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.cpp
@@ -75,12 +75,12 @@ void MediaStreamDescriptor::removeComponent(MediaStreamComponent* component) {
case MediaStreamSource::TypeAudio:
pos = m_audioComponents.find(component);
if (pos != kNotFound)
- m_audioComponents.remove(pos);
+ m_audioComponents.erase(pos);
break;
case MediaStreamSource::TypeVideo:
pos = m_videoComponents.find(component);
if (pos != kNotFound)
- m_videoComponents.remove(pos);
+ m_videoComponents.erase(pos);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698