Code Sharing

- Cleaned up the #ifdef in Task.cpp for sharing with taskd.

(cherry picked from commit af94ac2e12d84fddb735d6931aaf2c46176c794c)
This commit is contained in:
Paul Beckingham
2013-05-31 16:20:05 -04:00
parent 530e9c0118
commit dd0b01e487
2 changed files with 4 additions and 4 deletions

View File

@@ -1753,9 +1753,9 @@ int TDB2::next_id ()
const std::vector <Task> TDB2::all_tasks ()
{
std::vector <Task> all (pending._tasks.size () +
pending._added_tasks.size () +
completed._tasks.size () +
completed._added_tasks.size ());
pending._added_tasks.size () +
completed._tasks.size () +
completed._added_tasks.size ());
all = pending.get_tasks ();
std::vector <Task> extra (completed._tasks.size () +