diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-04 16:24:41 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-04 16:24:41 -0400 |
commit | 9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48 (patch) | |
tree | a06ae88d3464a2fd6c4a3e184e7973768cf0d392 /xml.h | |
parent | 966b231f23a0c74db105784ba1291c860ced483e (diff) | |
download | fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.tar.gz fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.tar.bz2 fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.zip |
First round of work to get the balance report working again.
Diffstat (limited to 'xml.h')
-rw-r--r-- | xml.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -61,12 +61,12 @@ class format_xml_entries : public format_entries format_xml_entries(); public: - format_xml_entries(std::ostream& output_stream, + format_xml_entries(report_t& _report, const bool _show_totals = false) - : format_entries(output_stream, ""), show_totals(_show_totals) { + : format_entries(_report, ""), show_totals(_show_totals) { TRACE_CTOR(format_xml_entries, "std::ostream&, const bool"); - output_stream << "<?xml version=\"1.0\"?>\n" - << "<ledger version=\"2.5\">\n"; + *report.output_stream << "<?xml version=\"1.0\"?>\n" + << "<ledger version=\"2.5\">\n"; } virtual ~format_xml_entries() throw() { TRACE_DTOR(format_xml_entries); @@ -74,7 +74,7 @@ public: virtual void flush() { format_entries::flush(); - output_stream << "</ledger>" << std::endl; + *report.output_stream << "</ledger>" << std::endl; } virtual void format_last_entry(); |