mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: dlLibraryTable.C : do find&insert in one
This commit is contained in:
@ -82,9 +82,8 @@ bool Foam::dlLibraryTable::open(const fileName& functionLibName)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!loadedLibraries.found(functionLibPtr))
|
||||
if (loadedLibraries.insert(functionLibPtr, functionLibName))
|
||||
{
|
||||
loadedLibraries.insert(functionLibPtr, functionLibName);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user