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

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

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 years, 11 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 8ff6c819f9f401fa7d85ef00514345ac895002df..04d191501478fd5121e18cff47e8dadbe78db74e 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
@@ -174,12 +174,12 @@ void AudioHandler::setNodeType(NodeType type) {
}
void AudioHandler::addInput() {
- m_inputs.append(AudioNodeInput::create(*this));
+ m_inputs.push_back(AudioNodeInput::create(*this));
}
void AudioHandler::addOutput(unsigned numberOfChannels) {
DCHECK(isMainThread());
- m_outputs.append(AudioNodeOutput::create(this, numberOfChannels));
+ m_outputs.push_back(AudioNodeOutput::create(this, numberOfChannels));
node()->didAddOutput(numberOfOutputs());
}
@@ -943,9 +943,9 @@ ExecutionContext* AudioNode::getExecutionContext() const {
}
void AudioNode::didAddOutput(unsigned numberOfOutputs) {
- m_connectedNodes.append(nullptr);
+ m_connectedNodes.push_back(nullptr);
DCHECK_EQ(numberOfOutputs, m_connectedNodes.size());
- m_connectedParams.append(nullptr);
+ m_connectedParams.push_back(nullptr);
DCHECK_EQ(numberOfOutputs, m_connectedParams.size());
}

Powered by Google App Engine
This is Rietveld 408576698