]> git.sesse.net Git - movit/blobdiff - fft_input.cpp
Use nullptr everywhere, now that we have C++11.
[movit] / fft_input.cpp
index f9339df24779fab2cb37fb00baba51e88f613d4b..bbc4a5fd4ff44a32d291654c3ff615a4866d9801 100644 (file)
@@ -19,7 +19,7 @@ FFTInput::FFTInput(unsigned width, unsigned height)
          fft_height(height),
          convolve_width(width),
          convolve_height(height),
-         pixel_data(NULL)
+         pixel_data(nullptr)
 {
        register_int("fft_width", &fft_width);
        register_int("fft_height", &fft_height);
@@ -39,7 +39,7 @@ void FFTInput::set_gl_state(GLuint glsl_program_num, const string& prefix, unsig
        check_error();
 
        if (texture_num == 0) {
-               assert(pixel_data != NULL);
+               assert(pixel_data != nullptr);
 
                // Do the FFT. Our FFTs should typically be small enough and
                // the data changed often enough that FFTW_ESTIMATE should be