From 24ae4bac7f0a74fd50ad07941689de4a4404e3c3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:26:20 -0600 Subject: Fixes for variable shadowing (4/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 38a694a8..23d64685 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -787,10 +787,10 @@ amount_t::value(const optional& moment, amount_t amount_t::price() const { if (has_annotation() && annotation().price) { - amount_t temp(*annotation().price); - temp *= *this; - DEBUG("amount.price", "Returning price of " << *this << " = " << temp); - return temp; + amount_t tmp(*annotation().price); + tmp *= *this; + DEBUG("amount.price", "Returning price of " << *this << " = " << tmp); + return tmp; } return *this; } -- cgit v1.2.3