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

Unified Diff: Source/modules/webaudio/AudioParam.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 | « Source/modules/webaudio/AudioNodeOutput.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioParam.cpp
diff --git a/Source/modules/webaudio/AudioParam.cpp b/Source/modules/webaudio/AudioParam.cpp
index a356c93bd54eb64a41543fd3fec3b4fefca2d9e5..fe32a402178e77b144e45a3ef96d75e2633f2219 100644
--- a/Source/modules/webaudio/AudioParam.cpp
+++ b/Source/modules/webaudio/AudioParam.cpp
@@ -175,7 +175,7 @@ void AudioParam::connect(AudioNodeOutput* output)
if (m_outputs.contains(output))
return;
- output->addParam(this);
+ output->addParam(*this);
m_outputs.add(output);
changedOutputs();
}
@@ -191,7 +191,7 @@ void AudioParam::disconnect(AudioNodeOutput* output)
if (m_outputs.contains(output)) {
m_outputs.remove(output);
changedOutputs();
- output->removeParam(this);
+ output->removeParam(*this);
}
}
« no previous file with comments | « Source/modules/webaudio/AudioNodeOutput.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698