diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-03 06:11:04 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:36 -0400 |
commit | c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 (patch) | |
tree | 204d28bfa2bdbfe8d7f550877faa114c1e93859f /src/gnucash.cc | |
parent | f9f24fab933266ab8e12da7eef4cc2a906f77350 (diff) | |
download | fork-ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.tar.gz fork-ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.tar.bz2 fork-ledger-c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0.zip |
Revised how commodities are dealt with.
Diffstat (limited to 'src/gnucash.cc')
-rw-r--r-- | src/gnucash.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnucash.cc b/src/gnucash.cc index 0fb62bf0..50b1f8f8 100644 --- a/src/gnucash.cc +++ b/src/gnucash.cc @@ -191,7 +191,7 @@ void dataHandler(void *userData, const char *s, int len) string symbol(s, len); if (symbol == "USD") symbol = "$"; - parser->curr_comm = commodity_t::find_or_create(symbol); + parser->curr_comm = amount_t::default_pool->find_or_create(symbol); assert(parser->curr_comm); if (symbol != "$") @@ -320,7 +320,7 @@ unsigned int gnucash_parser_t::parse(std::istream& in, // GnuCash uses the USD commodity without defining it, which really // means $. - commodity_t * usd = commodity_t::find_or_create("$"); + commodity_t * usd = amount_t::default_pool->find_or_create("$"); usd->set_precision(2); usd->add_flags(COMMODITY_STYLE_THOUSANDS); |