Code Cleanup

- Removed many more uses of the 'foreach' macro.
This commit is contained in:
Paul Beckingham 2011-06-04 23:02:18 -04:00
parent f9c1820740
commit 61e549c80c
5 changed files with 32 additions and 15 deletions

View file

@ -85,7 +85,9 @@ std::string getFullDescription (Task& task, const std::string& report)
desc += "\n" + when + " " + anno.value ();
}
else
foreach (anno, annotations)
{
std::vector <Att>::iterator anno;
for (anno = annotations.begin (); anno != annotations.end (); ++anno)
{
Date dt (atoi (anno->name ().substr (11).c_str ()));
std::string format = context.config.get ("dateformat.annotation");
@ -94,6 +96,7 @@ std::string getFullDescription (Task& task, const std::string& report)
std::string when = dt.toString (format);
desc += "\n" + when + " " + anno->value ();
}
}
}
return desc;