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
{
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;
}