From 2a1055890241b1299d8b91d65038d0f4f5067fb5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 2 Oct 2003 00:07:14 +0000 Subject: *** empty log message *** --- ledger.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'ledger.h') diff --git a/ledger.h b/ledger.h index 5cb5e3f7..e074f82e 100644 --- a/ledger.h +++ b/ledger.h @@ -1,5 +1,5 @@ #ifndef _LEDGER_H -#define _LEDGER_H "$Revision: 1.15 $" +#define _LEDGER_H "$Revision: 1.16 $" ////////////////////////////////////////////////////////////////////// // @@ -139,17 +139,9 @@ class amount // String conversion routines virtual void parse(const char * num) = 0; - virtual amount& operator=(const char * num) = 0; virtual std::string as_str(bool full_prec = false) const = 0; - virtual operator std::string() const = 0; }; -template -std::basic_ostream & -operator<<(std::basic_ostream& out, const amount& a) { - return (out << std::string(a)); -} - extern amount * create_amount(const char * value, const amount * cost = NULL); @@ -294,6 +286,11 @@ struct account accounts_t children; + account() : parent(NULL), checked(0) { +#ifdef HUQUQULLAH + exempt_or_necessary = false; +#endif + } account(const std::string& _name, struct account * _parent = NULL) : parent(_parent), name(_name), checked(0) { #ifdef HUQUQULLAH -- cgit v1.2.3