diff options
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(); |