STYLE: avoid copy operation in fileName::isAbsolute()

This commit is contained in:
Mark Olesen
2010-11-10 09:57:22 +01:00
parent 13e28f7bd1
commit 1a0da12db3

View File

@ -56,8 +56,7 @@ Foam::fileName::Type Foam::fileName::type() const
bool Foam::fileName::isAbsolute() const
{
fileName fName(*this);
return fName.size() && fName.operator[](0) == '/';
return !empty() && operator[](0) == '/';
}