Commit c1589e00 authored by mattijs's avatar mattijs
Browse files

STYLE: dlLibraryTable.C : do find&insert in one

parent 4f93b8ab
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment