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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.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/webaudio/BaseAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
index 4919f18e578cefde127ec84a18f64ea3efd8d76c..65df5dac717f4b11b637396790f8a27e66125819 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
@@ -666,7 +666,7 @@ void BaseAudioContext::removeFinishedSourceNodesOnMainThread() {
for (AudioNode* node : m_finishedSourceNodes) {
size_t i = m_activeSourceNodes.find(node);
if (i != kNotFound)
- m_activeSourceNodes.remove(i);
+ m_activeSourceNodes.erase(i);
}
m_finishedSourceNodes.clear();
}

Powered by Google App Engine
This is Rietveld 408576698