comparison 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
comparison
equal deleted inserted replaced
28220:6cccc3c82175 28223:45763d59cb4f
210 std::fclose (fptr); 210 std::fclose (fptr);
211 sys::unlink (tmpname); 211 sys::unlink (tmpname);
212 }); 212 });
213 213
214 if (set_nonbuffered_mode) 214 if (set_nonbuffered_mode)
215 ::setvbuf (fptr, 0, _IONBF, 0); 215 ::setvbuf (fptr, nullptr, _IONBF, 0);
216 216
217 while (true) 217 while (true)
218 { 218 {
219 int c = fgetc (fptr); 219 int c = fgetc (fptr);
220 220
339 fseek_ftell_bug_checked = true; 339 fseek_ftell_bug_checked = true;
340 } 340 }
341 341
342 if (fseek_ftell_bug_workaround_needed 342 if (fseek_ftell_bug_workaround_needed
343 && mode.find ('t') != std::string::npos) 343 && mode.find ('t') != std::string::npos)
344 ::setvbuf (fptr, 0, _IONBF, 0); 344 ::setvbuf (fptr, nullptr, _IONBF, 0);
345 345
346 return fptr; 346 return fptr;
347 347
348 #else 348 #else
349 return std::fopen (filename.c_str (), mode.c_str ()); 349 return std::fopen (filename.c_str (), mode.c_str ());