Fixes for variable shadowing (4/28)

This commit is contained in:
John Wiegley 2012-02-17 14:26:20 -06:00
parent f9613fe1de
commit 24ae4bac7f

View file

@ -787,10 +787,10 @@ amount_t::value(const optional<datetime_t>& moment,
amount_t amount_t::price() const amount_t amount_t::price() const
{ {
if (has_annotation() && annotation().price) { if (has_annotation() && annotation().price) {
amount_t temp(*annotation().price); amount_t tmp(*annotation().price);
temp *= *this; tmp *= *this;
DEBUG("amount.price", "Returning price of " << *this << " = " << temp); DEBUG("amount.price", "Returning price of " << *this << " = " << tmp);
return temp; return tmp;
} }
return *this; return *this;
} }