From 31738bddff2ec868ab0c6167cba77d5814f817d4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:29:54 -0600 Subject: Fixes for variable shadowing (22/28) --- src/print.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/print.cc') 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) -- cgit v1.2.3