comparison src/shared-fcns.h @ 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 c20b7290c778
children 0a5b15007766
comparison
equal deleted inserted replaced
28220:6cccc3c82175 28223:45763d59cb4f
48 std::string retval; 48 std::string retval;
49 49
50 std::string bin_dir; 50 std::string bin_dir;
51 51
52 char namebuf[MAX_PATH+1]; 52 char namebuf[MAX_PATH+1];
53 if (GetModuleFileName (GetModuleHandle (NULL), namebuf, MAX_PATH)) 53 if (GetModuleFileName (GetModuleHandle (nullptr), namebuf, MAX_PATH))
54 { 54 {
55 namebuf[MAX_PATH] = '\0'; 55 namebuf[MAX_PATH] = '\0';
56 56
57 std::string exe_name = namebuf; 57 std::string exe_name = namebuf;
58 size_t pos = exe_name.rfind ('\\'); 58 size_t pos = exe_name.rfind ('\\');