From d5401367b884d39f90d3baf840cf283da413eaf5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:27:44 -0600 Subject: Fixes for variable shadowing (11/28) --- src/draft.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/draft.cc') 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; -- cgit v1.2.3