summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 23:08:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 23:12:23 -0400
commitfc349389e3f074ae2ce22b93f3833f063f548a8f (patch)
treeb235bf0a9b6ca21aac1bcd56c8462f5570202723 /src/amount.h
parent96ff798736cd06812fb7e463c14d6c356c8228e3 (diff)
downloadfork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.gz
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.bz2
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.zip
Restored the --budget option
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amount.h b/src/amount.h
index a20b46b1..730d3569 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -291,7 +291,7 @@ public:
/** Returns the negated value of an amount.
@see operator-()
*/
- amount_t negate() const {
+ amount_t negated() const {
amount_t temp(*this);
temp.in_place_negate();
return temp;
@@ -299,7 +299,7 @@ public:
void in_place_negate();
amount_t operator-() const {
- return negate();
+ return negated();
}
/** Returns the absolute value of an amount. Equivalent to:
@@ -309,7 +309,7 @@ public:
*/
amount_t abs() const {
if (sign() < 0)
- return negate();
+ return negated();
return *this;
}