COMP: don't use vector::at(), this doesn't seem to exist everyhwere

(http://www.cdash.org/CDash/viewBuildError.php?buildid=366375)

Alex
This commit is contained in:
Alexander Neundorf 2009-06-29 14:27:45 -04:00
parent f33a27abd6
commit c4f2e42881
1 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ void Tree::InsertPath(const std::vector<std::string>& splitted,
it != folders.end(); it != folders.end();
++it) ++it)
{ {
if ((*it).path == splitted.at(start)) if ((*it).path == splitted[start])
{ {
if (start + 1 < splitted.size()) if (start + 1 < splitted.size())
{ {
@ -165,7 +165,7 @@ void Tree::InsertPath(const std::vector<std::string>& splitted,
} }
// Not found in folders, thus insert // Not found in folders, thus insert
Tree newFolder; Tree newFolder;
newFolder.path = splitted.at(start); newFolder.path = splitted[start];
if (start + 1 < splitted.size()) if (start + 1 < splitted.size())
{ {
newFolder.InsertPath(splitted, start + 1, fileName); newFolder.InsertPath(splitted, start + 1, fileName);