Commit 1a0da12d authored by Mark Olesen's avatar Mark Olesen
Browse files

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

parent 13e28f7b
...@@ -56,8 +56,7 @@ Foam::fileName::Type Foam::fileName::type() const ...@@ -56,8 +56,7 @@ Foam::fileName::Type Foam::fileName::type() const
bool Foam::fileName::isAbsolute() const bool Foam::fileName::isAbsolute() const
{ {
fileName fName(*this); return !empty() && operator[](0) == '/';
return fName.size() && fName.operator[](0) == '/';
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment