C++11: Replaced the C NULL with the safer C++11 nullptr

Requires gcc version 4.7 or higher
This commit is contained in:
Henry Weller
2016-08-05 17:19:38 +01:00
parent 7996a9138f
commit 58f905ff70
363 changed files with 1468 additions and 1416 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -113,7 +113,7 @@ public:
autoPtr<block> clone() const
{
NotImplemented;
return autoPtr<block>(NULL);
return autoPtr<block>(nullptr);
}

View File

@ -130,7 +130,7 @@ public:
autoPtr<blockDescriptor> clone() const
{
NotImplemented;
return autoPtr<blockDescriptor>(NULL);
return autoPtr<blockDescriptor>(nullptr);
}

View File

@ -429,7 +429,7 @@ Foam::polyMesh* Foam::blockMesh::createTopology
}
polyMesh* blockMeshPtr = NULL;
polyMesh* blockMeshPtr = nullptr;
//
// Create the patches

View File

@ -69,7 +69,7 @@ Foam::curvedEdge::curvedEdge(const curvedEdge& c)
Foam::autoPtr<Foam::curvedEdge> Foam::curvedEdge::clone() const
{
NotImplemented;
return autoPtr<curvedEdge>(NULL);
return autoPtr<curvedEdge>(nullptr);
}

View File

@ -329,7 +329,7 @@ Foam::refinementSurfaces::refinementSurfaces
{
if (patchInfo.set(pI))
{
patchInfo_.set(pI, patchInfo.set(pI, NULL));
patchInfo_.set(pI, patchInfo.set(pI, nullptr));
}
}
}