mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
Code Cleanup
- Replaced multiple Task:setX methods with Task::setAsNow (x).
This commit is contained in:
parent
cf5dbbb9ee
commit
b5f3cfd9a3
6 changed files with 15 additions and 47 deletions
|
@ -82,7 +82,7 @@ int CmdDone::execute (std::string& output)
|
|||
task->modify (Task::modAnnotate);
|
||||
task->setStatus (Task::completed);
|
||||
if (! task->has ("end"))
|
||||
task->setEnd ();
|
||||
task->setAsNow ("end");
|
||||
|
||||
// Stop the task, if started.
|
||||
if (task->has ("start"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue