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

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

Issue 906233002: Use nullptr instead of 0 in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « Source/modules/webaudio/PeriodicWave.cpp ('k') | Source/platform/audio/AudioArray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/ScriptProcessorNode.cpp
diff --git a/Source/modules/webaudio/ScriptProcessorNode.cpp b/Source/modules/webaudio/ScriptProcessorNode.cpp
index d425ae890aafa46f398205c386ede83dc41883f6..73d57115bafcfc6df97c55d82107c37684ded1e0 100644
--- a/Source/modules/webaudio/ScriptProcessorNode.cpp
+++ b/Source/modules/webaudio/ScriptProcessorNode.cpp
@@ -73,17 +73,17 @@ ScriptProcessorNode* ScriptProcessorNode::create(AudioContext* context, float sa
case 16384:
break;
default:
- return 0;
+ return nullptr;
}
if (!numberOfInputChannels && !numberOfOutputChannels)
- return 0;
+ return nullptr;
if (numberOfInputChannels > AudioContext::maxNumberOfChannels())
- return 0;
+ return nullptr;
if (numberOfOutputChannels > AudioContext::maxNumberOfChannels())
- return 0;
+ return nullptr;
return new ScriptProcessorNode(context, sampleRate, bufferSize, numberOfInputChannels, numberOfOutputChannels);
}
« no previous file with comments | « Source/modules/webaudio/PeriodicWave.cpp ('k') | Source/platform/audio/AudioArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698