Skip to content
Snippets Groups Projects
Commit 1a0da12d authored by Mark Olesen's avatar Mark Olesen
Browse files

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

parent 13e28f7b
No related branches found
No related tags found
No related merge requests found
...@@ -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) == '/';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment