From 07a32627554e23a001495b4ae2e486b7a6ae00db Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:29:24 -0600 Subject: Fixes for variable shadowing (19/28) --- src/output.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output.cc b/src/output.cc index 9d2e0cb6..9305cd28 100644 --- a/src/output.cc +++ b/src/output.cc @@ -338,13 +338,13 @@ void report_commodities::operator()(post_t& post) if (comm.has_annotation()) { annotated_commodity_t& ann_comm(as_annotated_commodity(comm)); if (ann_comm.details.price) { - std::map::iterator i = + std::map::iterator ii = commodities.find(&ann_comm.details.price->commodity()); - if (i == commodities.end()) + if (ii == commodities.end()) commodities.insert (commodities_pair(&ann_comm.details.price->commodity(), 1)); else - (*i).second++; + (*ii).second++; } } -- cgit v1.2.3