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

@@ -131,8 +131,9 @@ bool Record::has (const std::string& name) const
std::vector <Att> Record::all ()
{
std::vector <Att> all;
foreach (a, (*this))
all.push_back (a->second);
std::map <std::string, Att>::iterator i;
for (i = this->begin (); i != this->end (); ++i)
all.push_back (i->second);
return all;
}