summaryrefslogtreecommitdiff
path: root/src/print.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-17 14:29:54 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:06:23 -0600
commit31738bddff2ec868ab0c6167cba77d5814f817d4 (patch)
tree0a8b20227027ad88081eb4516bf05b0f4c1615a7 /src/print.cc
parent6a9743d833e5b8e856d0991506c804ae78865171 (diff)
downloadfork-ledger-31738bddff2ec868ab0c6167cba77d5814f817d4.tar.gz
fork-ledger-31738bddff2ec868ab0c6167cba77d5814f817d4.tar.bz2
fork-ledger-31738bddff2ec868ab0c6167cba77d5814f817d4.zip
Fixes for variable shadowing (22/28)
Diffstat (limited to 'src/print.cc')
-rw-r--r--src/print.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/print.cc b/src/print.cc
index 03c87884..ffa4e9eb 100644
--- a/src/print.cc
+++ b/src/print.cc
@@ -126,29 +126,29 @@ namespace {
out << " ";
- std::ostringstream buf;
+ std::ostringstream pbuf;
if (xact.state() == item_t::UNCLEARED)
- buf << (post->state() == item_t::CLEARED ? "* " :
+ pbuf << (post->state() == item_t::CLEARED ? "* " :
(post->state() == item_t::PENDING ? "! " : ""));
if (post->has_flags(POST_VIRTUAL)) {
if (post->has_flags(POST_MUST_BALANCE))
- buf << '[';
+ pbuf << '[';
else
- buf << '(';
+ pbuf << '(';
}
- buf << post->account->fullname();
+ pbuf << post->account->fullname();
if (post->has_flags(POST_VIRTUAL)) {
if (post->has_flags(POST_MUST_BALANCE))
- buf << ']';
+ pbuf << ']';
else
- buf << ')';
+ pbuf << ')';
}
- unistring name(buf.str());
+ unistring name(pbuf.str());
std::size_t account_width =
(report.HANDLER(account_width_).specified ?
@@ -208,7 +208,7 @@ namespace {
account_width += unistring(trailer).length();
} else {
- out << buf.str();
+ out << pbuf.str();
}
if (post->note)