summaryrefslogtreecommitdiff
path: root/xml.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-04 16:24:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-04 16:24:41 -0400
commit9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48 (patch)
treea06ae88d3464a2fd6c4a3e184e7973768cf0d392 /xml.h
parent966b231f23a0c74db105784ba1291c860ced483e (diff)
downloadfork-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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/xml.h b/xml.h
index 0e86163c..38768cff 100644
--- a/xml.h
+++ b/xml.h
@@ -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();