mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use fileName::nameLessExt() instead of fileName::name(bool)
- the purpose is more explicit, without needing to check documentation about what the bool parameter means. STYLE: improve formatting of fileName documentation
This commit is contained in:
@ -92,7 +92,7 @@ void Foam::dynamicCode::checkSecurity
|
||||
|
||||
Foam::word Foam::dynamicCode::libraryBaseName(const fileName& libPath)
|
||||
{
|
||||
word libName(libPath.name(true));
|
||||
word libName(libPath.nameLessExt());
|
||||
libName.removeStart("lib"); // Remove leading 'lib' from name
|
||||
return libName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user