diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-19 21:53:02 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-19 22:24:24 -0500 |
commit | 4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2 (patch) | |
tree | e4bce67522d52cd7be03544501191d761dce7799 /src/textual.cc | |
parent | 6e31328bd62d15e8da4238394abd8de65539cfa2 (diff) | |
download | fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.tar.gz fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.tar.bz2 fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.zip |
Many improvements to Ledger's Python bindings
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textual.cc b/src/textual.cc index aec7dbda..071e111d 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -490,7 +490,7 @@ void instance_t::default_commodity_directive(char * line) { amount_t amt(skip_ws(line + 1)); VERIFY(amt.valid()); - amount_t::current_pool->default_commodity = &amt.commodity(); + commodity_pool_t::current_pool->default_commodity = &amt.commodity(); amt.commodity().add_flags(COMMODITY_KNOWN); } @@ -511,7 +511,7 @@ void instance_t::price_conversion_directive(char * line) void instance_t::price_xact_directive(char * line) { optional<price_point_t> point = - amount_t::current_pool->parse_price_directive(skip_ws(line + 1)); + commodity_pool_t::current_pool->parse_price_directive(skip_ws(line + 1)); if (! point) throw parse_error(_("Pricing entry failed to parse")); } @@ -523,7 +523,7 @@ void instance_t::nomarket_directive(char * line) commodity_t::parse_symbol(p, symbol); if (commodity_t * commodity = - amount_t::current_pool->find_or_create(symbol)) + commodity_pool_t::current_pool->find_or_create(symbol)) commodity->add_flags(COMMODITY_NOMARKET | COMMODITY_KNOWN); } |