summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-15 11:15:54 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:03 -0400
commit3ddd46c3079d3382aa30932b3fa660484e383648 (patch)
tree85dfc8d191e74b2b02e5afd06a76d0d4a6501da4 /format.h
parenta9c7a86ffac106eaed82c5c5c7052c40adad7475 (diff)
downloadfork-ledger-3ddd46c3079d3382aa30932b3fa660484e383648.tar.gz
fork-ledger-3ddd46c3079d3382aa30932b3fa660484e383648.tar.bz2
fork-ledger-3ddd46c3079d3382aa30932b3fa660484e383648.zip
(format_xml_entries): Moved the stream finalization to flush(), where
it belongs.
Diffstat (limited to 'format.h')
-rw-r--r--format.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/format.h b/format.h
index fdab9155..d1b7a8dc 100644
--- a/format.h
+++ b/format.h
@@ -135,7 +135,9 @@ class format_xml_entries : public format_entries
: format_entries(output_stream, ""), show_totals(_show_totals) {
output_stream << "<?xml version=\"1.0\"?>\n<ledger>\n";
}
- virtual ~format_xml_entries() {
+
+ virtual void flush() {
+ format_entries::flush();
output_stream << "</ledger>" << std::endl;
}