diff options
Diffstat (limited to 'src/iterators.cc')
-rw-r--r-- | src/iterators.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/iterators.cc b/src/iterators.cc index 9b345282..01f678d0 100644 --- a/src/iterators.cc +++ b/src/iterators.cc @@ -96,11 +96,8 @@ void xacts_commodities_iterator::reset(journal_t& journal) foreach (commodity_t::base_t::history_by_commodity_map::value_type pair, history->histories) { - commodity_t& price_comm(*pair.first); - commodity_t::history_t& price_hist(pair.second); - foreach (commodity_t::base_t::history_map::value_type hpair, - price_hist.prices) { + pair.second.prices) { entry_t * entry; string symbol = hpair.second.commodity().symbol(); |