From 4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2012 19:32:40 -0500 Subject: Converted the Ledger build system to use CMake --- src/ptree.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ptree.cc') diff --git a/src/ptree.cc b/src/ptree.cc index db523e99..6fb840e0 100644 --- a/src/ptree.cc +++ b/src/ptree.cc @@ -54,7 +54,10 @@ void format_ptree::flush() property_tree::ptree pt; - pt.put("ledger..version", VERSION); + pt.put("ledger..version", + lexical_cast((Ledger_VERSION_MAJOR << 16) | + (Ledger_VERSION_MINOR << 8) | + Ledger_VERSION_PATCH)); property_tree::ptree& ct(pt.put("ledger.commodities", "")); foreach (const commodities_pair& pair, commodities) @@ -67,11 +70,11 @@ void format_ptree::flush() foreach (const xact_t * xact, transactions) { put_xact(tt, *xact); - property_tree::ptree& post_t(tt.put("postings", "")); + property_tree::ptree& post_tree(tt.put("postings", "")); foreach (const post_t * post, xact->posts) if (post->has_xdata() && post->xdata().has_flags(POST_EXT_VISITED)) - put_post(post_t, *post); + put_post(post_tree, *post); } switch (format) { -- cgit v1.2.3