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:
@ -816,7 +816,7 @@ namespace ATC {
|
||||
for (unsigned i = 0; i < quantity_.size(); ++i) {
|
||||
if (quantity_[i]) delete quantity_[i];
|
||||
}
|
||||
quantity_.resize(source.size(),NULL);
|
||||
quantity_.resize(source.size(),nullptr);
|
||||
for (unsigned i = 0; i < source.size(); i++) {
|
||||
quantity_[i] = new SPAR_MAT(map_->size(),source[i]->nCols());
|
||||
}
|
||||
@ -1363,7 +1363,7 @@ namespace ATC {
|
||||
{
|
||||
pointToElementMap_->register_dependence(this);
|
||||
pointPositions_->register_dependence(this);
|
||||
quantity_.resize(atc->nsd(),NULL);
|
||||
quantity_.resize(atc->nsd(),nullptr);
|
||||
for (int i = 0; i < atc->nsd(); ++i) {
|
||||
quantity_[i] = new SPAR_MAT();
|
||||
}
|
||||
@ -1428,7 +1428,7 @@ namespace ATC {
|
||||
atomPositions_->register_dependence(this);
|
||||
|
||||
// storage container
|
||||
matrices_.resize(atc->nsd(),NULL);
|
||||
matrices_.resize(atc->nsd(),nullptr);
|
||||
for (int i = 0; i < atc->nsd(); ++i) {
|
||||
matrices_[i] = new AtcAtomSparseMatrix<double>(atc,feEngine_->num_nodes(),
|
||||
feEngine_->num_nodes_per_element(),
|
||||
@ -1440,7 +1440,7 @@ namespace ATC {
|
||||
matrices_[i]->register_dependence(this);
|
||||
}
|
||||
|
||||
quantity_.resize(atc->nsd(),NULL);
|
||||
quantity_.resize(atc->nsd(),nullptr);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------
|
||||
@ -1926,7 +1926,7 @@ namespace ATC {
|
||||
VectorTransfer<SPAR_MAT * >(),
|
||||
feEngine_(atc->fe_engine())
|
||||
{
|
||||
quantity_.resize(atc->nsd(),NULL);
|
||||
quantity_.resize(atc->nsd(),nullptr);
|
||||
for (int i = 0; i < atc->nsd(); ++i) {
|
||||
quantity_[i] = new SPAR_MAT();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user