small efficiency boost
Modified: trunk/reactos/tools/rbuild/XML.cpp
_____
Modified: trunk/reactos/tools/rbuild/XML.cpp
--- trunk/reactos/tools/rbuild/XML.cpp 2005-09-02 22:41:40 UTC (rev
17611)
+++ trunk/reactos/tools/rbuild/XML.cpp 2005-09-03 01:19:25 UTC (rev
17612)
@@ -228,10 +228,8 @@
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()
Show replies by date