fix "no viable conversion from ... to 'bool'"
This commit is contained in:
parent
fa46f3442d
commit
df9ae3ab9b
4 changed files with 4 additions and 4 deletions
|
|
@ -261,7 +261,7 @@ public:
|
||||||
mutable optional<xdata_t> xdata_;
|
mutable optional<xdata_t> xdata_;
|
||||||
|
|
||||||
bool has_xdata() const {
|
bool has_xdata() const {
|
||||||
return xdata_;
|
return xdata_ != NULL;
|
||||||
}
|
}
|
||||||
void clear_xdata();
|
void clear_xdata();
|
||||||
xdata_t& xdata() {
|
xdata_t& xdata() {
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ public:
|
||||||
static bool use_aux_date;
|
static bool use_aux_date;
|
||||||
|
|
||||||
virtual bool has_date() const {
|
virtual bool has_date() const {
|
||||||
return _date;
|
return _date != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual date_t date() const {
|
virtual date_t date() const {
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ public:
|
||||||
mutable optional<xdata_t> xdata_;
|
mutable optional<xdata_t> xdata_;
|
||||||
|
|
||||||
bool has_xdata() const {
|
bool has_xdata() const {
|
||||||
return xdata_;
|
return xdata_ != NULL;
|
||||||
}
|
}
|
||||||
void clear_xdata() {
|
void clear_xdata() {
|
||||||
xdata_ = none;
|
xdata_ = none;
|
||||||
|
|
|
||||||
|
|
@ -568,7 +568,7 @@ public:
|
||||||
void stabilize(const optional<date_t>& date = none);
|
void stabilize(const optional<date_t>& date = none);
|
||||||
|
|
||||||
bool is_valid() const {
|
bool is_valid() const {
|
||||||
return start;
|
return start != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Find the current or next period containing date. Returns false if
|
/** Find the current or next period containing date. Returns false if
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue