T2345: Replace instances of NULL with nullptr

The following changes have been applied to src and lib folders:
regex replace: ([^"_])NULL ⇒ \1nullptr (8968 chgs in src, 1153 in lib)
Manually find/change: (void \*) nullptr ⇒ nullptr (1 case)
regex find: ".*?nullptr.*?"
  Manually ~14 cases back to "NULL" in src, ~2 in lib
  regex finds a few false positive where nullptr appears between two
  strings in a function call
This commit is contained in:
Anne Gunn
2020-09-11 07:39:46 -06:00
parent 101d39142e
commit f1ef7d85a8
1217 changed files with 8531 additions and 8531 deletions

View File

@ -52,15 +52,15 @@ Irregular::Irregular(LAMMPS *lmp) : Pointers(lmp)
// migrate work vectors
maxlocal = 0;
mproclist = NULL;
msizes = NULL;
mproclist = nullptr;
msizes = nullptr;
// send buffers
maxdbuf = 0;
dbuf = NULL;
dbuf = nullptr;
maxbuf = 0;
buf = NULL;
buf = nullptr;
// universal work vectors
@ -70,7 +70,7 @@ Irregular::Irregular(LAMMPS *lmp) : Pointers(lmp)
// initialize buffers for migrate atoms, not used for datum comm
// these can persist for multiple irregular operations
buf_send = buf_recv = NULL;
buf_send = buf_recv = nullptr;
maxsend = maxrecv = BUFMIN;
bufextra = BUFEXTRA;
grow_send(maxsend,2);