diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 14:26:20 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:06:01 -0600 |
commit | 24ae4bac7f0a74fd50ad07941689de4a4404e3c3 (patch) | |
tree | 1b1653d177ac5cc9d2d22e8ea7cbe282ea00651b /src/amount.cc | |
parent | f9613fe1de8f759242a10b35f2b257f7959688e8 (diff) | |
download | fork-ledger-24ae4bac7f0a74fd50ad07941689de4a4404e3c3.tar.gz fork-ledger-24ae4bac7f0a74fd50ad07941689de4a4404e3c3.tar.bz2 fork-ledger-24ae4bac7f0a74fd50ad07941689de4a4404e3c3.zip |
Fixes for variable shadowing (4/28)
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 8 |
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; } |