diff options
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 6 |
1 files 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<commodity_t *, std::size_t>::iterator i = + std::map<commodity_t *, std::size_t>::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++; } } |