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

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

Issue 386343004: WebAudio: Use references instead of pointers in AudioNodeInput and AudioNodeOutput. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioNodeInput.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.cpp
diff --git a/Source/modules/webaudio/AudioNode.cpp b/Source/modules/webaudio/AudioNode.cpp
index 69d6aba4cdba6883452cae38d42eb9b4335ef244..7c15779af69a016e9bcf51cd520139397511bbc6 100644
--- a/Source/modules/webaudio/AudioNode.cpp
+++ b/Source/modules/webaudio/AudioNode.cpp
@@ -145,7 +145,7 @@ void AudioNode::setNodeType(NodeType type)
void AudioNode::addInput()
{
- m_inputs.append(AudioNodeInput::create(this));
+ m_inputs.append(AudioNodeInput::create(*this));
}
void AudioNode::addOutput(PassOwnPtr<AudioNodeOutput> output)
@@ -202,8 +202,7 @@ void AudioNode::connect(AudioNode* destination, unsigned outputIndex, unsigned i
}
AudioNodeInput* input = destination->input(inputIndex);
- AudioNodeOutput* output = this->output(outputIndex);
- input->connect(output);
+ input->connect(*output(outputIndex));
// Let context know that a connection has been made.
context()->incrementConnectionCount();
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioNodeInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698