summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
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;