summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-12 20:44:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-12 20:44:46 -0400
commite0e181d2af4aff5ac6c253fe25737bf93bfb6996 (patch)
tree2529b3a51d012ced6c94c6f97e1c86284f9eecc9 /src/amount.h
parente6bea6c3ebfc0762543b7a8ed68719aaf3abff16 (diff)
downloadfork-ledger-e0e181d2af4aff5ac6c253fe25737bf93bfb6996.tar.gz
fork-ledger-e0e181d2af4aff5ac6c253fe25737bf93bfb6996.tar.bz2
fork-ledger-e0e181d2af4aff5ac6c253fe25737bf93bfb6996.zip
Made (un)reduce rvalue methods more consistent
They names were changed from reduce/unreduce to reduced/unreduced, since they return the modified value. This is more consistent with the naming of rounded/rounded.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amount.h b/src/amount.h
index a9077a4b..d07fd18e 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -330,7 +330,7 @@ public:
utilize "scaling commodities". For example, an amount of \c 1h
after reduction will be \c 3600s.
*/
- amount_t reduce() const {
+ amount_t reduced() const {
amount_t temp(*this);
temp.in_place_reduce();
return temp;
@@ -341,7 +341,7 @@ public:
compact form greater than one. That is, \c 3599s will unreduce to
\c 59.98m, while \c 3601 unreduces to \c 1h.
*/
- amount_t unreduce() const {
+ amount_t unreduced() const {
amount_t temp(*this);
temp.in_place_unreduce();
return temp;