C++11: Replaced the C NULL with the safer C++11 nullptr
Requires gcc version 4.7 or higher
This commit is contained in:
@ -49,7 +49,7 @@ void processField
|
||||
|
||||
IOobjectList fieldObjbjects(objects.lookupClass(fieldType::typeName));
|
||||
|
||||
if (fieldObjbjects.lookup(fieldName) != NULL)
|
||||
if (fieldObjbjects.lookup(fieldName) != nullptr)
|
||||
{
|
||||
fieldType vtf(*fieldObjbjects.lookup(fieldName), mesh);
|
||||
const typename fieldType::Boundary& bf =
|
||||
|
||||
@ -133,7 +133,7 @@ void rewriteBoundary
|
||||
|
||||
if (patchDict.found("neighbourPatch"))
|
||||
{
|
||||
patches.set(patchi, oldPatches.set(patchi, NULL));
|
||||
patches.set(patchi, oldPatches.set(patchi, nullptr));
|
||||
oldToNew[patchi] = newPatchi++;
|
||||
|
||||
// Check if patches come from automatic conversion
|
||||
@ -181,7 +181,7 @@ void rewriteBoundary
|
||||
const dictionary patchDict(patches[patchi].dict());
|
||||
|
||||
// Change entry on this side
|
||||
patches.set(patchi, oldPatches.set(patchi, NULL));
|
||||
patches.set(patchi, oldPatches.set(patchi, nullptr));
|
||||
oldToNew[patchi] = newPatchi++;
|
||||
dictionary& thisPatchDict = patches[patchi].dict();
|
||||
thisPatchDict.add("neighbourPatch", nbrName);
|
||||
@ -226,7 +226,7 @@ void rewriteBoundary
|
||||
}
|
||||
else
|
||||
{
|
||||
patches.set(patchi, oldPatches.set(patchi, NULL));
|
||||
patches.set(patchi, oldPatches.set(patchi, nullptr));
|
||||
oldToNew[patchi] = newPatchi++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user