Fixes for variable shadowing (4/28)
This commit is contained in:
parent
f9613fe1de
commit
24ae4bac7f
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue