diff options
Diffstat (limited to 'src/balance.cc')
-rw-r--r-- | src/balance.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 |