diff options
-rw-r--r-- | src/pool.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pool.cc b/src/pool.cc index 1dd91e99..0118a97d 100644 --- a/src/pool.cc +++ b/src/pool.cc @@ -67,14 +67,12 @@ commodity_t * commodity_pool_t::create(const string& symbol) *commodity->qualified_symbol += "\""; } - DEBUG("pool.commodities", - "Creating commodity '" << commodity->symbol() << "'"); + DEBUG("pool.commodities", "Creating commodity '" << symbol << "'"); #if defined(DEBUG_ON) std::pair<commodities_map::iterator, bool> result = #endif - commodities.insert(commodities_map::value_type - (commodity->base_symbol(), commodity)); + commodities.insert(commodities_map::value_type(symbol, commodity)); #if defined(DEBUG_ON) assert(result.second); #endif |