ENH: Added isAbsolute() function to fileName class

This commit is contained in:
andy
2010-11-02 18:06:27 +00:00
parent 6d70677ddb
commit 64fe671850
5 changed files with 20 additions and 9 deletions

View File

@ -64,9 +64,7 @@ bool Foam::IOobject::IOobject::fileNameComponents
return false;
}
string::size_type first = path.find('/');
if (first == 0)
if (path.isAbsolute())
{
// called with absolute path
WarningIn("IOobject::fileNameComponents(const fileName&, ...)")