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:
@ -180,7 +180,7 @@ public:
|
||||
autoPtr<functionObject> clone() const
|
||||
{
|
||||
NotImplemented;
|
||||
return autoPtr<functionObject>(NULL);
|
||||
return autoPtr<functionObject>(nullptr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -606,7 +606,7 @@ bool Foam::functionObjectList::read()
|
||||
{
|
||||
// Delete the disabled functionObject
|
||||
delete objPtr;
|
||||
objPtr = NULL;
|
||||
objPtr = nullptr;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user