summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-07-27 18:11:19 -0700
committerJohn Wiegley <johnw@newartisans.com>2015-07-27 18:11:19 -0700
commit21c3569a70c675c388f0d349a6ba8512d3c141aa (patch)
treeeee91e88c78ad7eb936272697261dbdea1ec3769 /src/item.h
parent5b31641a75c3b603d53350965ff4867ac05f77e5 (diff)
parentbcaca24de4264f89a94069701361988007e22e58 (diff)
downloadfork-ledger-21c3569a70c675c388f0d349a6ba8512d3c141aa.tar.gz
fork-ledger-21c3569a70c675c388f0d349a6ba8512d3c141aa.tar.bz2
fork-ledger-21c3569a70c675c388f0d349a6ba8512d3c141aa.zip
Merge pull request #422 from jwakely/issue-417
Convert boost::optional objects to bool explicitly.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/item.h b/src/item.h
index ba812175..dbba53a8 100644
--- a/src/item.h
+++ b/src/item.h
@@ -174,11 +174,7 @@ public:
static bool use_aux_date;
virtual bool has_date() const {
-#if BOOST_VERSION >= 105600
- return _date != NULL;
-#else
- return _date;
-#endif
+ return static_cast<bool>(_date);
}
virtual date_t date() const {