mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: prefer isHeaderClass<Type>() check instead of Type::typeName
- use typeHeaderOk<regIOobject>(false) for some generic file existence checks. Often had something like labelIOField as a placeholder, but that may be construed to have a particular something.
This commit is contained in:
@ -52,9 +52,9 @@ autoPtr<GeoFieldType> loadField
|
||||
const IOobject* io
|
||||
)
|
||||
{
|
||||
if (io && io->headerClassName() == GeoFieldType::typeName)
|
||||
if (io && io->isHeaderClass<GeoFieldType>())
|
||||
{
|
||||
Info<< "Reading " << GeoFieldType::typeName
|
||||
Info<< "Reading " << io->headerClassName()
|
||||
<< ' ' << io->name() << endl;
|
||||
|
||||
return autoPtr<GeoFieldType>::New
|
||||
|
||||
Reference in New Issue
Block a user