summaryrefslogtreecommitdiff
path: root/src/cache.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-20 14:46:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-20 14:46:18 -0400
commit697f6a6bce46e75fcb37c38da9f16ca2f1a8e9a3 (patch)
tree6c3a1d56ecf904e40bba17519daa72f56b095524 /src/cache.cc
parente914b476e9a9004f707c71116e9601178ec57c9f (diff)
downloadfork-ledger-697f6a6bce46e75fcb37c38da9f16ca2f1a8e9a3.tar.gz
fork-ledger-697f6a6bce46e75fcb37c38da9f16ca2f1a8e9a3.tar.bz2
fork-ledger-697f6a6bce46e75fcb37c38da9f16ca2f1a8e9a3.zip
Began initial work to support specifying a series of commodities to -V.
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;
}