diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-09 05:06:40 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-09 05:06:40 -0600 |
commit | 9fd1fc1c228eeba8324972d0d034027ad9de6f41 (patch) | |
tree | 898f861e81f992ff2bd8c7dff0e485e3ccb0ccbf /src/pool.cc | |
parent | c813eafbd8aaad5d66c3eb8857393c9fa1c98db6 (diff) | |
download | fork-ledger-9fd1fc1c228eeba8324972d0d034027ad9de6f41.tar.gz fork-ledger-9fd1fc1c228eeba8324972d0d034027ad9de6f41.tar.bz2 fork-ledger-9fd1fc1c228eeba8324972d0d034027ad9de6f41.zip |
Simplified some code in commodity_pool_t
Diffstat (limited to 'src/pool.cc')
-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 |