From b662509ee95434702c0a0d1cf97f1c1295f06ec4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Feb 2009 22:50:19 -0400 Subject: amount_t::in_place_* now returns void. Added value_t::unreduce. --- src/amount.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/amount.h') 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 -- cgit v1.2.3