From 205dd3a1ee41dec370fc4ff05412e72d42977a3b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 22 Jun 2010 20:51:18 -0400 Subject: [PATCH] Added has_date() method to item_t --- src/item.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/item.h b/src/item.h index b7dde35f..79d2f23b 100644 --- a/src/item.h +++ b/src/item.h @@ -175,6 +175,10 @@ public: static bool use_effective_date; + virtual bool has_date() const { + return _date; + } + virtual date_t date() const { assert(_date); if (use_effective_date)