summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amount.cc8
1 files changed, 4 insertions, 4 deletions
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<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;
}