diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-20 13:48:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-20 13:48:36 -0400 |
commit | 1bbb6933af6c3052297ca647e31980b4dcce6960 (patch) | |
tree | da2e9d53094dd6b43d64aa39ef58d9d283fb3b1e /src/amount.h | |
parent | 0e95974360464212de55803c4fc6c671502dbf99 (diff) | |
download | fork-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.h | 6 |
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 |