- Fixed bug #899, which displayed incorrect project completion numbers (thanks
  to Paul-Gheorghe Barbu).
- Added unit tests.
This commit is contained in:
Paul Beckingham 2012-01-29 17:44:43 -05:00
parent c092b027a6
commit bf9e14f581
5 changed files with 68 additions and 15 deletions

View file

@ -92,15 +92,8 @@ void TF2::target (const std::string& f)
const std::vector <Task>& TF2::get_tasks ()
{
if (! _loaded_tasks)
{
load_tasks ();
// Apply previously added tasks.
std::vector <Task>::iterator i;
for (i = _added_tasks.begin (); i != _added_tasks.end (); ++i)
_tasks.push_back (*i);
}
return _tasks;
}
@ -108,15 +101,8 @@ const std::vector <Task>& TF2::get_tasks ()
const std::vector <std::string>& TF2::get_lines ()
{
if (! _loaded_lines)
{
load_lines ();
// Apply previously added lines.
std::vector <std::string>::iterator i;
for (i = _added_lines.begin (); i != _added_lines.end (); ++i)
_lines.push_back (*i);
}
return _lines;
}