diff options
author | Joe Gallo <joegallo@gmail.com> | 2014-08-26 09:07:57 -0400 |
---|---|---|
committer | Joe Gallo <joegallo@gmail.com> | 2014-08-26 09:07:57 -0400 |
commit | df9ae3ab9b37fde803f26c6bc4eaadfd67fc1d07 (patch) | |
tree | c9ebf25e8dad05241484992f46785ff7765c78ae | |
parent | fa46f3442d2fa9e462c14564aecbfe34c16d18b2 (diff) | |
download | fork-ledger-df9ae3ab9b37fde803f26c6bc4eaadfd67fc1d07.tar.gz fork-ledger-df9ae3ab9b37fde803f26c6bc4eaadfd67fc1d07.tar.bz2 fork-ledger-df9ae3ab9b37fde803f26c6bc4eaadfd67fc1d07.zip |
fix "no viable conversion from ... to 'bool'"
-rw-r--r-- | src/account.h | 2 | ||||
-rw-r--r-- | src/item.h | 2 | ||||
-rw-r--r-- | src/post.h | 2 | ||||
-rw-r--r-- | src/times.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/account.h b/src/account.h index d1377c39..4a4041b7 100644 --- a/src/account.h +++ b/src/account.h @@ -261,7 +261,7 @@ public: mutable optional<xdata_t> xdata_; bool has_xdata() const { - return xdata_; + return xdata_ != NULL; } void clear_xdata(); xdata_t& xdata() { @@ -191,7 +191,7 @@ public: static bool use_aux_date; virtual bool has_date() const { - return _date; + return _date != NULL; } virtual date_t date() const { @@ -205,7 +205,7 @@ public: mutable optional<xdata_t> xdata_; bool has_xdata() const { - return xdata_; + return xdata_ != NULL; } void clear_xdata() { xdata_ = none; diff --git a/src/times.h b/src/times.h index 2a5b9277..d2f7bb19 100644 --- a/src/times.h +++ b/src/times.h @@ -568,7 +568,7 @@ public: void stabilize(const optional<date_t>& date = none); bool is_valid() const { - return start; + return start != NULL; } /** Find the current or next period containing date. Returns false if |