mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
consistency update for null pointers
- uniform use of reinterpret_cast<foo*>(0) instead of
reinterpret_cast<foo*>(NULL)
- make all static null() members inline since they are really only a cast:
"*reinterpret_cast<foo*>(0)"
This commit is contained in:
@ -24,7 +24,7 @@ License
|
||||
|
||||
Description
|
||||
Translates a STAR-CD SMAP data file into FOAM field format.
|
||||
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "fvCFD.H"
|
||||
@ -108,15 +108,15 @@ int main(int argc, char *argv[])
|
||||
List<volScalarField*> sFields
|
||||
(
|
||||
nCols,
|
||||
reinterpret_cast<volScalarField*>(NULL)
|
||||
reinterpret_cast<volScalarField*>(0)
|
||||
);
|
||||
|
||||
List<volVectorField*> vFields
|
||||
(
|
||||
nCols,
|
||||
reinterpret_cast<volVectorField*>(NULL)
|
||||
reinterpret_cast<volVectorField*>(0)
|
||||
);
|
||||
|
||||
|
||||
label i=0;
|
||||
while (i < nCols)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user