diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-09 00:41:33 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-09 00:41:33 +0000 |
commit | 4cb6433ccfd07dd6a3fbf629ea0ac01c79816e78 (patch) | |
tree | 3ecd373d245bbd670461f3b93c3d8dea062059ed /amount.cc | |
parent | 072d5131b49ff64de40d1c9e44a0abcf3b0f1d73 (diff) | |
download | fork-ledger-4cb6433ccfd07dd6a3fbf629ea0ac01c79816e78.tar.gz fork-ledger-4cb6433ccfd07dd6a3fbf629ea0ac01c79816e78.tar.bz2 fork-ledger-4cb6433ccfd07dd6a3fbf629ea0ac01c79816e78.zip |
*** empty log message ***
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -144,14 +144,10 @@ static void multiply(mpz_t out, const mpz_t l, const mpz_t r) amount * gmp_amount::copy() const { gmp_amount * new_amt = new gmp_amount(); -#if 0 - // Don't copy the price - new_amt->priced = priced; - mpz_set(new_amt->price, price); - new_amt->price_comm = price_comm; -#endif + mpz_set(new_amt->quantity, quantity); new_amt->quantity_comm = quantity_comm; + return new_amt; } @@ -242,6 +238,7 @@ amount * gmp_amount::street(bool get_quotes) const if (amt->commdty() == old->commdty()) break; } + return amt; } |