From 4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Nov 2009 21:53:02 -0500 Subject: Many improvements to Ledger's Python bindings --- src/quotes.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/quotes.cc') diff --git a/src/quotes.cc b/src/quotes.cc index 7f41e4ff..ffe2142a 100644 --- a/src/quotes.cc +++ b/src/quotes.cc @@ -76,13 +76,13 @@ commodity_quote_from_script(commodity_t& commodity, DEBUG("commodity.download", "downloaded quote: " << buf); if (optional point = - amount_t::current_pool->parse_price_directive(buf)) { - if (amount_t::current_pool->price_db) { + commodity_pool_t::current_pool->parse_price_directive(buf)) { + if (commodity_pool_t::current_pool->price_db) { #if defined(__GNUG__) && __GNUG__ < 3 - ofstream database(*amount_t::current_pool->price_db, + ofstream database(*commodity_pool_t::current_pool->price_db, ios::out | ios::app); #else - ofstream database(*amount_t::current_pool->price_db, + ofstream database(*commodity_pool_t::current_pool->price_db, std::ios_base::out | std::ios_base::app); #endif database << "P " -- cgit v1.2.3