diff liboctave/system/lo-sysdep.cc @ 28223:45763d59cb4f stable

use nullptr instead of NULL or 0 in a few more places * QWinTerminalImpl.cpp, oct-procbuf.cc, audioread.cc, jit-typeinfo.cc, lo-sysdep.cc, url-transfer.cc, shared-fcns.h: Replace NULL and 0 with nullptr where appropriate.
author John W. Eaton <jwe@octave.org>
date Wed, 15 Apr 2020 15:55:32 -0400
parents 6cccc3c82175
children 159b6a1eb408 39c078e14824
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.cc	Tue Apr 14 22:53:19 2020 -0400
+++ b/liboctave/system/lo-sysdep.cc	Wed Apr 15 15:55:32 2020 -0400
@@ -212,7 +212,7 @@
                          });
 
       if (set_nonbuffered_mode)
-        ::setvbuf (fptr, 0, _IONBF, 0);
+        ::setvbuf (fptr, nullptr, _IONBF, 0);
 
       while (true)
         {
@@ -341,7 +341,7 @@
 
       if (fseek_ftell_bug_workaround_needed
           && mode.find ('t') != std::string::npos)
-        ::setvbuf (fptr, 0, _IONBF, 0);
+        ::setvbuf (fptr, nullptr, _IONBF, 0);
 
       return fptr;