(format_xml_entries): Moved the stream finalization to flush(), where

it belongs.
This commit is contained in:
John Wiegley 2005-02-15 11:15:54 +00:00
parent a9c7a86ffa
commit 3ddd46c307

View file

@ -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;
}