mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
C++11: Replaced the C NULL with the safer C++11 nullptr
Requires gcc version 4.7 or higher
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -130,7 +130,7 @@ public:
|
||||
autoPtr<blockDescriptor> clone() const
|
||||
{
|
||||
NotImplemented;
|
||||
return autoPtr<blockDescriptor>(NULL);
|
||||
return autoPtr<blockDescriptor>(nullptr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -429,7 +429,7 @@ Foam::polyMesh* Foam::blockMesh::createTopology
|
||||
}
|
||||
|
||||
|
||||
polyMesh* blockMeshPtr = NULL;
|
||||
polyMesh* blockMeshPtr = nullptr;
|
||||
|
||||
//
|
||||
// Create the patches
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user