summaryrefslogtreecommitdiff
path: root/src/annotate.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-03 12:09:23 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-03 12:09:23 -0500
commit94b2518c4156e5a6b2be45bdbeeacf1ced0cd17f (patch)
treebed7d794e70294347d4f0eca7159a2eed5743543 /src/annotate.cc
parent46e46dd5a337c009391583a679d6172cf4f5aa42 (diff)
parentf6f8ef1ba6164622f38b91bf10e0c1a0e7e8f9e3 (diff)
downloadledger-94b2518c4156e5a6b2be45bdbeeacf1ced0cd17f.tar.gz
ledger-94b2518c4156e5a6b2be45bdbeeacf1ced0cd17f.tar.bz2
ledger-94b2518c4156e5a6b2be45bdbeeacf1ced0cd17f.zip
Merge branch 'next'
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