Code Cleanup

- Replaced multiple Task:setX methods with Task::setAsNow (x).
This commit is contained in:
Paul Beckingham 2014-09-14 11:57:02 -04:00
parent cf5dbbb9ee
commit b5f3cfd9a3
6 changed files with 15 additions and 47 deletions

View file

@ -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"))