Skip to content

Commit

Permalink
Added has_date() method to item_t
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jun 23, 2010
1 parent 26a94fb commit 205dd3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/item.h
Expand Up @@ -175,6 +175,10 @@ class item_t : public supports_flags<uint_least16_t>, public scope_t

static bool use_effective_date;

virtual bool has_date() const {
return _date;
}

virtual date_t date() const {
assert(_date);
if (use_effective_date)
Expand Down

0 comments on commit 205dd3a

Please sign in to comment.