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

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

View File

@ -606,7 +606,7 @@ bool Foam::functionObjectList::read()
{
// Delete the disabled functionObject
delete objPtr;
objPtr = NULL;
objPtr = nullptr;
continue;
}
}

View File

@ -88,7 +88,7 @@ class functionObjectList
//- Remove and return the function object pointer by name,
// and returns the old index via the parameter.
// Returns a NULL pointer (and index -1) if it didn't exist
// Returns a nullptr pointer (and index -1) if it didn't exist
functionObject* remove(const word&, label& oldIndex);
//- Search the specified directory for functionObject