mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 12:28:35 +02:00
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:
parent
b9ea9ca2db
commit
0e2da7f1d4
5 changed files with 17 additions and 45 deletions
|
@ -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
|
||||
// ---------- ------------- ----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue