mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
make TDB2.pending/completed non-public
References to methods on these fields are replaced with methods on TDB2, several of which already existed.
This commit is contained in:
parent
4ebd0ffb39
commit
271d06cd9c
11 changed files with 43 additions and 33 deletions
12
src/TDB2.cpp
12
src/TDB2.cpp
|
@ -1133,6 +1133,18 @@ const std::vector <Task> TDB2::all_tasks ()
|
|||
return all;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::vector <Task> TDB2::pending_tasks ()
|
||||
{
|
||||
return pending.get_tasks ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::vector <Task> TDB2::completed_tasks ()
|
||||
{
|
||||
return completed.get_tasks ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Locate task by ID, wherever it is.
|
||||
bool TDB2::get (int id, Task& task)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue