mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid copy operation in fileName::isAbsolute()
This commit is contained in:
@ -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) == '/';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user