small efficiency boost

svn path=/trunk/; revision=17612
This commit is contained in:
Royce Mitchell III 2005-09-03 01:19:25 +00:00
parent 99c1fbbdfc
commit 937e6fc685

View 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()