From f9613fe1de8f759242a10b35f2b257f7959688e8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:26:16 -0600 Subject: Fixes for variable shadowing (3/28) --- src/amount.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/amount.cc') diff --git a/src/amount.cc b/src/amount.cc index 8f187515..38a694a8 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -705,21 +705,21 @@ void amount_t::in_place_unreduce() if (! quantity) throw_(amount_error, _("Cannot unreduce an uninitialized amount")); - amount_t temp = *this; + amount_t tmp = *this; commodity_t * comm = commodity_; bool shifted = false; while (comm && comm->larger()) { - amount_t next_temp = temp / comm->larger()->number(); + amount_t next_temp = tmp / comm->larger()->number(); if (next_temp.abs() < amount_t(1L)) break; - temp = next_temp; + tmp = next_temp; comm = comm->larger()->commodity_; shifted = true; } if (shifted) { - *this = temp; + *this = tmp; commodity_ = comm; } } -- cgit v1.2.3