Merge branch 'master' into new-fontification-scheme

This commit is contained in:
Craig Earls 2014-08-26 18:09:09 -07:00
commit bacde09ead
6 changed files with 7 additions and 7 deletions

View file

@ -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() {

View file

@ -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 {

View file

@ -205,7 +205,7 @@ public:
mutable optional<xdata_t> xdata_;
bool has_xdata() const {
return xdata_;
return xdata_ != NULL;
}
void clear_xdata() {
xdata_ = none;

View file

@ -80,7 +80,7 @@ void format_ptree::flush()
switch (format) {
case FORMAT_XML:
property_tree::xml_writer_settings<char> indented(' ', 2);
auto indented = property_tree::xml_writer_make_settings<std::string> (' ', 2);
property_tree::write_xml(out, pt, indented);
out << std::endl;
break;

View file

@ -465,8 +465,8 @@ public:
" 12 + 1 + 12 + 1 + 12, true, color))"
" %(ansify_if("
" justify((get_at(display_total, 1) ? "
" (100% * scrub(get_at(display_total, 0))) / "
" -scrub(get_at(display_total, 1)) : 0), "
" (100% * quantity(scrub(get_at(display_total, 0)))) / "
" -quantity(scrub(get_at(display_total, 1))) : 0), "
" 5, -1, true, false),"
" magenta if (color and get_at(display_total, 1) and "
" (abs(quantity(scrub(get_at(display_total, 0))) / "

View file

@ -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