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

@ -25,8 +25,8 @@ BaseDPDT::BaseDPD() : _compiled(false), _max_bytes(0) {
device=&global_device;
ans=new Answer<numtyp,acctyp>();
nbor=new Neighbor();
pair_program=NULL;
ucl_device=NULL;
pair_program=nullptr;
ucl_device=nullptr;
}
template <class numtyp, class acctyp>
@ -138,7 +138,7 @@ int * BaseDPDT::reset_nbors(const int nall, const int inum, int *ilist,
resize_atom(inum,nall,success);
resize_local(inum,mn,success);
if (!success)
return NULL;
return nullptr;
nbor->get_host(inum,ilist,numj,firstneigh,block_size());
@ -245,7 +245,7 @@ int** BaseDPDT::compute(const int ago, const int inum_full,
// Make sure textures are correct if realloc by a different hybrid style
resize_atom(0,nall,success);
zero_timers();
return NULL;
return nullptr;
}
hd_balancer.balance(cpu_time);
@ -258,7 +258,7 @@ int** BaseDPDT::compute(const int ago, const int inum_full,
build_nbor_list(inum, inum_full-inum, nall, host_x, host_type,
sublo, subhi, tag, nspecial, special, success);
if (!success)
return NULL;
return nullptr;
atom->cast_v_data(host_v,tag);
hd_balancer.start_timer();
} else {