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:
@ -120,9 +120,9 @@ void Rerun::command(int narg, char **arg)
|
||||
rd->store_files(nfile,arg);
|
||||
if (nremain)
|
||||
nremain = rd->fields_and_keywords(nremain,&arg[narg-nremain]);
|
||||
else nremain = rd->fields_and_keywords(0,NULL);
|
||||
else nremain = rd->fields_and_keywords(0,nullptr);
|
||||
if (nremain) rd->setup_reader(nremain,&arg[narg-nremain]);
|
||||
else rd->setup_reader(0,NULL);
|
||||
else rd->setup_reader(0,nullptr);
|
||||
|
||||
// perform the pseudo run
|
||||
// invoke lmp->init() only once
|
||||
|
||||
Reference in New Issue
Block a user