summaryrefslogtreecommitdiff
path: root/src/annotate.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 21:39:54 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 21:55:53 -0500
commit690e46117e1da8da1dd1bd2b9a0151c2b792104e (patch)
tree68aadb45413dfe4319d0b4d0a79985900fbc7c01 /src/annotate.cc
parent4befcfa27d1e4b162512f6161f9f897862ccdf57 (diff)
downloadfork-ledger-690e46117e1da8da1dd1bd2b9a0151c2b792104e.tar.gz
fork-ledger-690e46117e1da8da1dd1bd2b9a0151c2b792104e.tar.bz2
fork-ledger-690e46117e1da8da1dd1bd2b9a0151c2b792104e.zip
Added Python interface for commodity_t
Diffstat (limited to 'src/annotate.cc')
-rw-r--r--src/annotate.cc6
1 files changed, 3 insertions, 3 deletions
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