Fixes for variable shadowing (22/28)
This commit is contained in:
parent
6a9743d833
commit
31738bddff
1 changed files with 9 additions and 9 deletions
18
src/print.cc
18
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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue