From fc349389e3f074ae2ce22b93f3833f063f548a8f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Feb 2009 23:08:42 -0400 Subject: Restored the --budget option --- 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 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; } -- cgit v1.2.3