From a38ed141c1f33ecdad99b322acb1ae07b30a5da2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 18 May 2012 01:31:01 -0600 Subject: Switched to Boost.PropertyTree for XML generation --- src/balance.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/balance.cc') diff --git a/src/balance.cc b/src/balance.cc index 42034ff8..d9551670 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -336,12 +336,12 @@ void balance_t::print(std::ostream& out, amount_printer.close(); } -void to_xml(std::ostream& out, const balance_t& bal) +void put_balance(property_tree::ptree& pt, const balance_t& bal) { - push_xml x(out, "balance"); + property_tree::ptree& st(pt.put("balance", "")); foreach (const balance_t::amounts_map::value_type& pair, bal.amounts) - to_xml(out, pair.second); + put_amount(st, pair.second); } } // namespace ledger -- cgit v1.2.3