mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17: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
|
@ -56,7 +56,7 @@ void handleRecurrence ()
|
|||
if (! Context::getContext ().config.getBoolean ("recurrence"))
|
||||
return;
|
||||
|
||||
auto tasks = Context::getContext ().tdb2.pending.get_tasks ();
|
||||
auto tasks = Context::getContext ().tdb2.pending_tasks ();
|
||||
Datetime now;
|
||||
|
||||
// Look at all tasks and find any recurring ones.
|
||||
|
@ -411,7 +411,7 @@ void updateRecurrenceMask (Task& task)
|
|||
void handleUntil ()
|
||||
{
|
||||
Datetime now;
|
||||
auto tasks = Context::getContext ().tdb2.pending.get_tasks ();
|
||||
auto tasks = Context::getContext ().tdb2.pending_tasks ();
|
||||
for (auto& t : tasks)
|
||||
{
|
||||
// TODO What about expiring template tasks?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue