summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-20 13:48:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-20 13:48:36 -0400
commit1bbb6933af6c3052297ca647e31980b4dcce6960 (patch)
treeda2e9d53094dd6b43d64aa39ef58d9d283fb3b1e /src/amount.h
parent0e95974360464212de55803c4fc6c671502dbf99 (diff)
downloadfork-ledger-1bbb6933af6c3052297ca647e31980b4dcce6960.tar.gz
fork-ledger-1bbb6933af6c3052297ca647e31980b4dcce6960.tar.bz2
fork-ledger-1bbb6933af6c3052297ca647e31980b4dcce6960.zip
Cleaned up the way that commodity pricing is handled.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 006c554a..c6d2c27c 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -241,6 +241,12 @@ public:
else
commodity_ = NULL;
}
+ amount_t(const amount_t& amt, const annotation_t& details) : quantity(NULL) {
+ TRACE_CTOR(amount_t, "const amount_t&, const annotation_t&");
+ assert(amt.quantity);
+ _copy(amt);
+ annotate(details);
+ }
amount_t& operator=(const amount_t& amt);
#ifdef HAVE_GDTOA