summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-11 22:59:43 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-11 22:59:43 +0000
commit854b719f1ec704a7a84bee629bc759b25d19ca6f (patch)
tree14602d9d63c0ab5bb944f1e82ed84e4ac884f8b6 /amount.cc
parent7ebe72c054575af9771644c8164ef7be7e52e388 (diff)
downloadfork-ledger-854b719f1ec704a7a84bee629bc759b25d19ca6f.tar.gz
fork-ledger-854b719f1ec704a7a84bee629bc759b25d19ca6f.tar.bz2
fork-ledger-854b719f1ec704a7a84bee629bc759b25d19ca6f.zip
c
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/amount.cc b/amount.cc
index 1f76d64f..dd2a3cc8 100644
--- a/amount.cc
+++ b/amount.cc
@@ -49,6 +49,10 @@ class gmp_amount : public amount
return quantity_comm;
}
+ virtual void set_commdty(commodity * comm) {
+ quantity_comm = comm;
+ }
+
virtual amount * copy() const;
virtual amount * value(amount *) const;
virtual amount * street(bool get_quotes) const;