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:
@ -142,7 +142,7 @@ bool Foam::dlLibraryTable::close
|
||||
|
||||
bool ok = dlClose(libPtrs_[index]);
|
||||
|
||||
libPtrs_[index] = NULL;
|
||||
libPtrs_[index] = nullptr;
|
||||
libNames_[index] = fileName::null;
|
||||
|
||||
if (!ok)
|
||||
@ -179,7 +179,7 @@ void* Foam::dlLibraryTable::findLibrary(const fileName& functionLibName)
|
||||
{
|
||||
return libPtrs_[index];
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user