diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-15 11:15:54 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:03 -0400 |
commit | 3ddd46c3079d3382aa30932b3fa660484e383648 (patch) | |
tree | 85dfc8d191e74b2b02e5afd06a76d0d4a6501da4 /format.h | |
parent | a9c7a86ffac106eaed82c5c5c7052c40adad7475 (diff) | |
download | fork-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |