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
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue