From d802d392811be44d34ae9cd23f616db93e54c50f Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 9 Mar 2014 21:14:26 +0100 Subject: clang-modernize -use-nullptr and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine --- Source/Core/AudioCommon/DPL2Decoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/AudioCommon/DPL2Decoder.cpp') diff --git a/Source/Core/AudioCommon/DPL2Decoder.cpp b/Source/Core/AudioCommon/DPL2Decoder.cpp index 418239fae4..29a5f73d14 100644 --- a/Source/Core/AudioCommon/DPL2Decoder.cpp +++ b/Source/Core/AudioCommon/DPL2Decoder.cpp @@ -123,7 +123,7 @@ float* design_fir(unsigned int *n, float* fc, float opt) float fc1; // Cutoff frequencies // Sanity check - if(*n==0) return NULL; + if(*n==0) return nullptr; MathUtil::Clamp(&fc[0],float(0.001),float(1)); float *w=(float*)calloc(sizeof(float),*n); @@ -188,7 +188,7 @@ void done(void) { free(filter_coefs_lfe); } - filter_coefs_lfe = NULL; + filter_coefs_lfe = nullptr; } float* calc_coefficients_125Hz_lowpass(int rate) @@ -378,5 +378,5 @@ void dpl2reset() { olddelay = -1; oldfreq = 0; - filter_coefs_lfe = NULL; + filter_coefs_lfe = nullptr; } -- cgit v1.2.3