From 4cb6433ccfd07dd6a3fbf629ea0ac01c79816e78 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 9 Oct 2003 00:41:33 +0000 Subject: *** empty log message *** --- amount.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index 1c1155ff..d7cf0d88 100644 --- a/amount.cc +++ b/amount.cc @@ -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; } -- cgit v1.2.3