summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 1b85910f..a1c26403 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -262,7 +262,7 @@ commodity_t::varied_history_t::find_price(const commodity_t& source,
price_point_t best;
bool found = false;
- foreach (history_by_commodity_map::value_type hist, histories) {
+ foreach (const history_by_commodity_map::value_type& hist, histories) {
commodity_t& comm(*hist.first);
if (comm == source)
continue;