summaryrefslogtreecommitdiff
path: root/src/balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-18 01:31:01 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-18 01:31:01 -0600
commita38ed141c1f33ecdad99b322acb1ae07b30a5da2 (patch)
treec6555946e2575a6bcb0ae7642673257954e38ac1 /src/balance.cc
parent3c3bda19d62eed165b9191dbf1adcb3e7c975356 (diff)
downloadfork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.tar.gz
fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.tar.bz2
fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.zip
Switched to Boost.PropertyTree for XML generation
Diffstat (limited to 'src/balance.cc')
-rw-r--r--src/balance.cc6
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