diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-29 23:32:29 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-29 23:32:29 -0400 |
commit | 63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc (patch) | |
tree | 6af161c7d0a7ca78a26f8b1f1f57426acddf9be9 /valexpr.cc | |
parent | 2d62f7b633bdaa39c650bb67425514cf1e66a4dd (diff) | |
download | fork-ledger-63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc.tar.gz fork-ledger-63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc.tar.bz2 fork-ledger-63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc.zip |
the amount/balance/value logic is now a library, completely separate from ledger
Diffstat (limited to 'valexpr.cc')
-rw-r--r-- | valexpr.cc | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -218,9 +218,8 @@ void value_expr_t::compute(value_t& result, const details_t& details) const // jww (2004-08-17): do something smarter here? result.cast(value_t::AMOUNT); } - // jww (2004-08-29): maybe this should be strip_commodity? if (result.type == value_t::AMOUNT) - ((amount_t *) result.data)->set_commodity(*commodity_t::null_commodity); + ((amount_t *) result.data)->clear_commodity(); break; } |