summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-17 14:26:23 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:06:02 -0600
commitf4e22cf7cb82f76245d962237acbe53c84cbd9d3 (patch)
tree81649430c1a0c256bf8cd0f6c2522caadfa69baa /src/amount.cc
parent24ae4bac7f0a74fd50ad07941689de4a4404e3c3 (diff)
downloadfork-ledger-f4e22cf7cb82f76245d962237acbe53c84cbd9d3.tar.gz
fork-ledger-f4e22cf7cb82f76245d962237acbe53c84cbd9d3.tar.bz2
fork-ledger-f4e22cf7cb82f76245d962237acbe53c84cbd9d3.zip
Fixes for variable shadowing (5/28)
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 23d64685..9a84a457 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -1179,9 +1179,9 @@ bool amount_t::parse(std::istream& in, const parse_flags_t& flags)
mpq_div(MP(new_quantity.get()), MP(new_quantity.get()), tempq);
IF_DEBUG("amount.parse") {
- char * buf = mpq_get_str(NULL, 10, MP(new_quantity.get()));
- DEBUG("amount.parse", "Rational parsed = " << buf);
- std::free(buf);
+ char * amt_buf = mpq_get_str(NULL, 10, MP(new_quantity.get()));
+ DEBUG("amount.parse", "Rational parsed = " << amt_buf);
+ std::free(amt_buf);
}
} else {
mpq_set_str(MP(new_quantity.get()), quant.c_str(), 10);