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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioNode.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/AudioNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
index 078da446c08fb4cec63721f03b0aaad226e13fa5..3d082a6e0c995233703f2c593069df8bf1b67447 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
@@ -710,7 +710,7 @@ bool AudioNode::disconnectFromOutputIfConnected(
if (!output.isConnectedToInput(input))
return false;
output.disconnectInput(input);
- m_connectedNodes[outputIndex]->remove(&destination);
+ m_connectedNodes[outputIndex]->erase(&destination);
return true;
}
@@ -720,7 +720,7 @@ bool AudioNode::disconnectFromOutputIfConnected(unsigned outputIndex,
if (!output.isConnectedToAudioParam(param.handler()))
return false;
output.disconnectAudioParam(param.handler());
- m_connectedParams[outputIndex]->remove(&param);
+ m_connectedParams[outputIndex]->erase(&param);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698