Code Cleanup

- Removed used of foreach macro.
This commit is contained in:
Paul Beckingham
2010-11-27 19:42:34 -05:00
parent 4c3354fa50
commit bfc2367bdb
7 changed files with 55 additions and 36 deletions

View File

@@ -152,7 +152,8 @@ void ReportStats::gatherStats ()
std::vector <std::string> undo;
File::read (file, undo);
int undoCount = 0;
foreach (tx, undo)
std::vector <std::string>::iterator tx;
for (tx = undo.begin (); tx != undo.end (); ++tx)
if (tx->substr (0, 3) == "---")
++undoCount;
@@ -213,7 +214,8 @@ void ReportStats::gatherStats ()
it->getTags (tags);
if (tags.size ()) ++taggedT;
foreach (t, tags)
std::vector <std::string>::iterator t;
for (t = tags.begin (); t != tags.end (); ++t)
allTags[*t] = 0;
std::string project = it->get ("project");