Add Task.is_empty, needed to identify "dummy" tasks (simple refactor)

getDOM takes an &Task that may be a reference to a dummy, or may be a
real task.  The is_empty method replaces `task.data.size() == 0` as a
way to distinguish the two.
This commit is contained in:
Dustin J. Mitchell
2021-11-18 02:17:24 +00:00
committed by Tomas Babej
parent dede40bc4e
commit 0d9e402d3e
3 changed files with 24 additions and 11 deletions

View File

@@ -100,6 +100,8 @@ public:
void set (const std::string&, long long);
void remove (const std::string&);
bool is_empty () const;
#ifdef PRODUCT_TASKWARRIOR
bool is_ready () const;
bool is_due () const;