From 05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Aug 2004 17:32:20 -0400 Subject: fixed account display bug --- ledger.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'ledger.h') diff --git a/ledger.h b/ledger.h index ba5e5592..c9bd37ba 100644 --- a/ledger.h +++ b/ledger.h @@ -41,9 +41,10 @@ class transaction_t amount_t cost; unsigned int flags; std::string note; - balance_pair_t total; - unsigned int index; - unsigned int dflags; + + mutable balance_pair_t total; + mutable unsigned int index; + mutable unsigned int dflags; transaction_t(entry_t * _entry, account_t * _account) : entry(_entry), account(_account), flags(TRANSACTION_NORMAL), @@ -105,15 +106,16 @@ class account_t account_t * parent; std::string name; std::string note; - unsigned long depth; + unsigned int depth; accounts_map accounts; transactions_list transactions; - balance_pair_t value; - balance_pair_t total; - unsigned long ident; - unsigned long dflags; - mutable std::string _fullname; + mutable balance_pair_t value; + mutable balance_pair_t total; + mutable unsigned long ident; + mutable unsigned long dflags; + mutable std::string _fullname; + static unsigned long next_ident; account_t(account_t * _parent, -- cgit v1.2.3