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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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/AudioNodeInput.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
index d6ee8a8ce456623cade18c938e251b4ea3064c40..6ecb2bb84e05e725700dc62b4ad89fb8f2dc8d1e 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp
@@ -60,7 +60,7 @@ void AudioNodeInput::disconnect(AudioNodeOutput& output) {
// First try to disconnect from "active" connections.
if (m_outputs.contains(&output)) {
- m_outputs.remove(&output);
+ m_outputs.erase(&output);
changedOutputs();
output.removeInput(*this);
// Note: it's important to return immediately after removeInput() calls
@@ -70,7 +70,7 @@ void AudioNodeInput::disconnect(AudioNodeOutput& output) {
// Otherwise, try to disconnect from disabled connections.
if (m_disabledOutputs.contains(&output)) {
- m_disabledOutputs.remove(&output);
+ m_disabledOutputs.erase(&output);
output.removeInput(*this);
// Note: it's important to return immediately after all removeInput() calls
// since the node may be deleted.
@@ -85,7 +85,7 @@ void AudioNodeInput::disable(AudioNodeOutput& output) {
DCHECK(m_outputs.contains(&output));
m_disabledOutputs.insert(&output);
- m_outputs.remove(&output);
+ m_outputs.erase(&output);
changedOutputs();
// Propagate disabled state to outputs.
@@ -99,7 +99,7 @@ void AudioNodeInput::enable(AudioNodeOutput& output) {
m_outputs.insert(&output);
if (m_disabledOutputs.size() > 0) {
DCHECK(m_disabledOutputs.contains(&output));
- m_disabledOutputs.remove(&output);
+ m_disabledOutputs.erase(&output);
}
changedOutputs();

Powered by Google App Engine
This is Rietveld 408576698