summaryrefslogtreecommitdiff
path: root/src/cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.cc')
-rw-r--r--src/cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.cc b/src/cache.cc
index 0501cee6..64b7c751 100644
--- a/src/cache.cc
+++ b/src/cache.cc
@@ -290,7 +290,7 @@ void read_commodity_base_extra(const char *& data,
// duplicated (and thus not lost when the journal's item_pool is deleted).
if (! commodity->history)
commodity->history = commodity_t::history_t();
- commodity->history->prices.insert(commodity_t::base_t::history_pair(when, amt));
+ commodity->history->prices.insert(commodity_t::history_t::value_type(when, amt));
read_history = true;
}