summaryrefslogtreecommitdiff
path: root/src/value.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/value.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/value.h')
-rw-r--r--src/value.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.h b/src/value.h
index 7b058065..049d3d01 100644
--- a/src/value.h
+++ b/src/value.h
@@ -408,14 +408,14 @@ public:
value_t rounded() const;
value_t unrounded() const;
- value_t reduce() const {
+ value_t reduced() const {
value_t temp(*this);
temp.in_place_reduce();
return temp;
}
void in_place_reduce(); // exists for efficiency's sake
- value_t unreduce() const {
+ value_t unreduced() const {
value_t temp(*this);
temp.in_place_unreduce();
return temp;