STYLE: Using isAbsolute for file name type checks

This commit is contained in:
andy
2011-06-20 10:40:31 +01:00
parent cedfb1b2be
commit 46ef467160

View File

@ -889,12 +889,12 @@ Foam::chemkinReader::chemkinReader(const dictionary& thermoDict)
fileName relPath = thermoDict.name().path();
if (relPath.size())
{
if (chemkinFile.size() && chemkinFile[0] != '/')
if (!chemkinFile.isAbsolute())
{
chemkinFile = relPath/chemkinFile;
}
if (thermoFile.size() && thermoFile[0] != '/')
if (!thermoFile.isAbsolute())
{
thermoFile = relPath/thermoFile;
}