From 690e46117e1da8da1dd1bd2b9a0151c2b792104e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Nov 2009 21:39:54 -0500 Subject: Added Python interface for commodity_t --- src/annotate.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/annotate.cc') diff --git a/src/annotate.cc b/src/annotate.cc index 9c676086..45a4e7c8 100644 --- a/src/annotate.cc +++ b/src/annotate.cc @@ -185,12 +185,12 @@ annotated_commodity_t::strip_annotations(const keep_details_t& what_to_keep) (keep_date && details.date) || (keep_tag && details.tag)) { - new_comm = parent().find_or_create + new_comm = pool().find_or_create (referent(), annotation_t(keep_price ? details.price : none, keep_date ? details.date : none, keep_tag ? details.tag : none)); } else { - new_comm = parent().find_or_create(base_symbol()); + new_comm = pool().find_or_create(base_symbol()); } assert(new_comm); @@ -199,7 +199,7 @@ annotated_commodity_t::strip_annotations(const keep_details_t& what_to_keep) void annotated_commodity_t::write_annotations(std::ostream& out) const { - details.print(out, parent().keep_base); + details.print(out, pool().keep_base); } } // namespace ledger -- cgit v1.2.3