mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
small efficiency boost
svn path=/trunk/; revision=17612
This commit is contained in:
parent
99c1fbbdfc
commit
937e6fc685
|
@ -228,10 +228,8 @@ Path::Split ( vector<string>& out,
|
|||
prev = p;
|
||||
p = strtok ( NULL, "/\\" );
|
||||
}
|
||||
if ( include_last )
|
||||
if ( include_last && strcmp ( prev, "." ) )
|
||||
out.push_back ( prev );
|
||||
if ( out.back() == "." )
|
||||
out.pop_back();
|
||||
}
|
||||
|
||||
XMLFile::XMLFile()
|
||||
|
|
Loading…
Reference in a new issue