Code Cleanup

- When compiling the 2.0.0 branch of Taskwarrior with GCC 4.6.1, the compiler
  generates a number of warnings.  This patch eliminates these warnings.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Matt Kraai 2011-07-25 23:17:37 -04:00 committed by Paul Beckingham
parent b9ea9ca2db
commit 0e2da7f1d4
5 changed files with 17 additions and 45 deletions

View file

@ -133,10 +133,11 @@ std::string onProjectChange (Task& task, bool scope /* = true */)
int count_done = 0;
std::vector <Task> all;
std::vector <Task> none;
context.tdb.load (all);
countTasks (all, project, context.tdb.getAllModified (), count_pending, count_done);
countTasks (context.tdb.getAllModified (), project, (std::vector <Task>) NULL, count_pending, count_done);
countTasks (context.tdb.getAllModified (), project, none, count_pending, count_done);
// count_done count_pending percentage
// ---------- ------------- ----------