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

Unified Diff: Source/platform/audio/HRTFKernel.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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/platform/audio/HRTFElevation.cpp ('k') | Source/platform/exported/WebHTTPBody.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/HRTFKernel.cpp
diff --git a/Source/platform/audio/HRTFKernel.cpp b/Source/platform/audio/HRTFKernel.cpp
index 8c32e7f3e79e05da46072bfadf6fac4566e98407..d68510cdfa4da4d93a3f240930c9ee6f58c3558d 100644
--- a/Source/platform/audio/HRTFKernel.cpp
+++ b/Source/platform/audio/HRTFKernel.cpp
@@ -113,7 +113,7 @@ PassRefPtr<HRTFKernel> HRTFKernel::createInterpolatedKernel(HRTFKernel* kernel1,
{
ASSERT(kernel1 && kernel2);
if (!kernel1 || !kernel2)
- return 0;
+ return nullptr;
ASSERT(x >= 0.0 && x < 1.0);
x = min(1.0f, max(0.0f, x));
@@ -122,7 +122,7 @@ PassRefPtr<HRTFKernel> HRTFKernel::createInterpolatedKernel(HRTFKernel* kernel1,
float sampleRate2 = kernel2->sampleRate();
ASSERT(sampleRate1 == sampleRate2);
if (sampleRate1 != sampleRate2)
- return 0;
+ return nullptr;
float frameDelay = (1 - x) * kernel1->frameDelay() + x * kernel2->frameDelay();
« no previous file with comments | « Source/platform/audio/HRTFElevation.cpp ('k') | Source/platform/exported/WebHTTPBody.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698