small efficiency boost
authorRoyce Mitchell III <royce3@ev1.net>
Sat, 3 Sep 2005 01:19:25 +0000 (01:19 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sat, 3 Sep 2005 01:19:25 +0000 (01:19 +0000)
svn path=/trunk/; revision=17612

reactos/tools/rbuild/XML.cpp

index 8300fe7..32cf417 100644 (file)
@@ -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()