From 5a90fe735772fd4d52216ae76ddad893bce177e6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 2 Aug 2008 22:45:35 -0400 Subject: Moved xact_xdata_t into xact_t itself, as a set of "extended data" that might be gathered during reporting. Removed the references to accounts and such from the mask logic, which means that the value expression "acount =~ /foo/" is needed in place of just "/foo/". --- xml.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'xml.cc') diff --git a/xml.cc b/xml.cc index ebafd65b..c71aaa97 100644 --- a/xml.cc +++ b/xml.cc @@ -381,9 +381,9 @@ void format_xml_entries::format_last_entry() } bool first = true; - foreach (const xact_t * xact, last_entry->xacts) { - if (xact_has_xdata(*xact) && - xact_xdata_(*xact).dflags & XACT_TO_DISPLAY) { + foreach (xact_t * xact, last_entry->xacts) { + if (xact->has_xdata() && + xact->xdata().has_flags(XACT_EXT_TO_DISPLAY)) { if (first) { output_stream << " \n"; first = false; @@ -427,9 +427,8 @@ void format_xml_entries::format_last_entry() } output_stream << " \n"; - if (xact_xdata_(*xact).dflags & XACT_COMPOUND) - xml_write_value(output_stream, - xact_xdata_(*xact).value, 10); + if (xact->xdata().has_flags(XACT_EXT_COMPOUND)) + xml_write_value(output_stream, xact->xdata().value, 10); else xml_write_value(output_stream, value_t(xact->amount), 10); output_stream << " \n"; @@ -448,13 +447,13 @@ void format_xml_entries::format_last_entry() if (show_totals) { output_stream << " \n"; - xml_write_value(output_stream, xact_xdata_(*xact).total, 10); + xml_write_value(output_stream, xact->xdata().total, 10); output_stream << " \n"; } output_stream << " \n"; - xact_xdata_(*xact).dflags |= XACT_DISPLAYED; + xact->xdata().add_flags(XACT_EXT_DISPLAYED); } } -- cgit v1.2.3