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:
@ -30,7 +30,7 @@ namespace ATC{
|
||||
for (unsigned int i = 0; i < NUM_ATOM_TYPES; i++) {
|
||||
fundamentalAtomQuantities_[i].resize(LammpsInterface::NUM_FUNDAMENTAL_ATOM_QUANTITIES);
|
||||
for (unsigned int j = 0; j < LammpsInterface::NUM_FUNDAMENTAL_ATOM_QUANTITIES; j++)
|
||||
fundamentalAtomQuantities_[i][j] = NULL;
|
||||
fundamentalAtomQuantities_[i][j] = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ namespace ATC{
|
||||
if (fundamentalAtomQuantities_[i][j]) {
|
||||
index = dfs_visit(fundamentalAtomQuantities_[i][j],index);
|
||||
if ((fundamentalAtomQuantities_[i][j])->memory_type()==TEMPORARY) {
|
||||
fundamentalAtomQuantities_[i][j] = NULL;
|
||||
fundamentalAtomQuantities_[i][j] = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -453,7 +453,7 @@ namespace ATC{
|
||||
DependencyManager * InterscaleManager::find(const string & tag)
|
||||
{
|
||||
// REFACTOR add check for duplicate entries
|
||||
DependencyManager * quantity = NULL;
|
||||
DependencyManager * quantity = nullptr;
|
||||
|
||||
quantity = find_in_list(perAtomQuantities_,tag);
|
||||
if (quantity) return quantity;
|
||||
@ -482,7 +482,7 @@ namespace ATC{
|
||||
quantity = find_in_list(smallMoleculeSets_,tag);
|
||||
if (quantity) return quantity;
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user