From 9fd1fc1c228eeba8324972d0d034027ad9de6f41 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Mar 2012 05:06:40 -0600 Subject: Simplified some code in commodity_pool_t --- src/pool.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/pool.cc') 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 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 -- cgit v1.2.3