diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-07 22:50:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-07 22:50:19 -0400 |
commit | b662509ee95434702c0a0d1cf97f1c1295f06ec4 (patch) | |
tree | cc292d70fcf7f05365d80a6400b69f8139c9eeb0 /src/amount.h | |
parent | cb0faac58dde384e817d671c49d250e5beda07c9 (diff) | |
download | fork-ledger-b662509ee95434702c0a0d1cf97f1c1295f06ec4.tar.gz fork-ledger-b662509ee95434702c0a0d1cf97f1c1295f06ec4.tar.bz2 fork-ledger-b662509ee95434702c0a0d1cf97f1c1295f06ec4.zip |
amount_t::in_place_* now returns void. Added value_t::unreduce.
Diffstat (limited to 'src/amount.h')
-rw-r--r-- | src/amount.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amount.h b/src/amount.h index 8042dd6b..0943a4c0 100644 --- a/src/amount.h +++ b/src/amount.h @@ -296,7 +296,7 @@ public: temp.in_place_negate(); return temp; } - amount_t& in_place_negate(); + void in_place_negate(); amount_t operator-() const { return negate(); @@ -335,7 +335,7 @@ public: temp.in_place_reduce(); return temp; } - amount_t& in_place_reduce(); + void in_place_reduce(); /** unreduce(), if used with a "scaling commodity", yields the most compact form greater than one. That is, \c 3599s will unreduce to @@ -346,7 +346,7 @@ public: temp.in_place_unreduce(); return temp; } - amount_t& in_place_unreduce(); + void in_place_unreduce(); /** Returns the historical value for an amount -- the default moment returns the most recently known price -- based on the price history |