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

Unified Diff: Source/modules/webaudio/OfflineAudioContext.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/MediaElementAudioSourceNode.cpp ('k') | Source/modules/webaudio/OscillatorNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/OfflineAudioContext.cpp
diff --git a/Source/modules/webaudio/OfflineAudioContext.cpp b/Source/modules/webaudio/OfflineAudioContext.cpp
index e70027f4dbe3e063f2c1a12bd3a9d239ba327a7a..19572eef044d23aaf08d396705aac030ad12f4d2 100644
--- a/Source/modules/webaudio/OfflineAudioContext.cpp
+++ b/Source/modules/webaudio/OfflineAudioContext.cpp
@@ -44,14 +44,14 @@ OfflineAudioContext* OfflineAudioContext::create(ExecutionContext* context, unsi
exceptionState.throwDOMException(
NotSupportedError,
"Workers are not supported.");
- return 0;
+ return nullptr;
}
Document* document = toDocument(context);
if (!numberOfFrames) {
exceptionState.throwDOMException(SyntaxError, "number of frames cannot be zero.");
- return 0;
+ return nullptr;
}
if (numberOfChannels > AudioContext::maxNumberOfChannels()) {
@@ -64,7 +64,7 @@ OfflineAudioContext* OfflineAudioContext::create(ExecutionContext* context, unsi
ExceptionMessages::InclusiveBound,
AudioContext::maxNumberOfChannels(),
ExceptionMessages::InclusiveBound));
- return 0;
+ return nullptr;
}
if (!AudioUtilities::isValidAudioBufferSampleRate(sampleRate)) {
« no previous file with comments | « Source/modules/webaudio/MediaElementAudioSourceNode.cpp ('k') | Source/modules/webaudio/OscillatorNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698