summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-17 14:29:37 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:06:20 -0600
commitad792301585c285e50744ab2fa2c5de1c9d8b5e3 (patch)
tree71a2a3f93a37bad4e00ad70d48037d50016f1b2b /src/post.cc
parent07a32627554e23a001495b4ae2e486b7a6ae00db (diff)
downloadfork-ledger-ad792301585c285e50744ab2fa2c5de1c9d8b5e3.tar.gz
fork-ledger-ad792301585c285e50744ab2fa2c5de1c9d8b5e3.tar.bz2
fork-ledger-ad792301585c285e50744ab2fa2c5de1c9d8b5e3.zip
Fixes for variable shadowing (20/28)
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/post.cc b/src/post.cc
index 862460df..cec1179f 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -641,10 +641,10 @@ void post_t::add_to_value(value_t& value, const optional<expr_t&>& expr) const
}
}
-void post_t::set_reported_account(account_t * account)
+void post_t::set_reported_account(account_t * acct)
{
- xdata().account = account;
- account->xdata().reported_posts.push_back(this);
+ xdata().account = acct;
+ acct->xdata().reported_posts.push_back(this);
}
void to_xml(std::ostream& out, const post_t& post)