summaryrefslogtreecommitdiff
path: root/src/draft.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-17 14:27:44 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:06:08 -0600
commitd5401367b884d39f90d3baf840cf283da413eaf5 (patch)
tree4ebed6070081da2f439102d618480612863079a5 /src/draft.cc
parente644d364a14a35bc2788c24ca49e105e39f0c960 (diff)
downloadfork-ledger-d5401367b884d39f90d3baf840cf283da413eaf5.tar.gz
fork-ledger-d5401367b884d39f90d3baf840cf283da413eaf5.tar.bz2
fork-ledger-d5401367b884d39f90d3baf840cf283da413eaf5.zip
Fixes for variable shadowing (11/28)
Diffstat (limited to 'src/draft.cc')
-rw-r--r--src/draft.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draft.cc b/src/draft.cc
index 12a14c40..2b8b45f7 100644
--- a/src/draft.cc
+++ b/src/draft.cc
@@ -209,8 +209,8 @@ void draft_t::parse_args(const value_t& args)
tmpl->posts.back().account_mask && ! tmpl->posts.back().amount)
tmpl->posts.back().from = true;
- foreach (xact_template_t::post_template_t& post, tmpl->posts) {
- if (post.from)
+ foreach (xact_template_t::post_template_t& post_tmpl, tmpl->posts) {
+ if (post_tmpl.from)
has_only_to = false;
else
has_only_from = false;