From c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 May 2007 06:11:04 +0000 Subject: Revised how commodities are dealt with. --- src/qif.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qif.cc') diff --git a/src/qif.cc b/src/qif.cc index 2f1d720c..677b907e 100644 --- a/src/qif.cc +++ b/src/qif.cc @@ -110,7 +110,7 @@ unsigned int qif_parser_t::parse(std::istream& in, unsigned char prec = xact->amount->commodity().precision(); if (! def_commodity) { - def_commodity = commodity_t::find_or_create("$"); + def_commodity = amount_t::default_pool->find_or_create("$"); assert(def_commodity); } xact->amount->set_commodity(*def_commodity); -- cgit v1.2.3