diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 14:29:24 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:06:19 -0600 |
commit | 07a32627554e23a001495b4ae2e486b7a6ae00db (patch) | |
tree | ff526a309f2664cb2f0303c8b4dc1203aa4076aa /src/output.cc | |
parent | 72527ce3b39674a3e72e505d555f76b87a19eea5 (diff) | |
download | fork-ledger-07a32627554e23a001495b4ae2e486b7a6ae00db.tar.gz fork-ledger-07a32627554e23a001495b4ae2e486b7a6ae00db.tar.bz2 fork-ledger-07a32627554e23a001495b4ae2e486b7a6ae00db.zip |
Fixes for variable shadowing (19/28)
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++; } } |