mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 12:28:35 +02:00
Code Cleanup
- Removed many more uses of the 'foreach' macro.
This commit is contained in:
parent
f9c1820740
commit
61e549c80c
5 changed files with 32 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue