diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-09 17:32:20 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-09 17:32:20 -0400 |
commit | 05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68 (patch) | |
tree | ab61a5efdcdfe7bb73f346da5e45ac228d6458c0 /ledger.h | |
parent | 2dc822291f3ecef34eb0ef2920c395b0e056fbda (diff) | |
download | fork-ledger-05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68.tar.gz fork-ledger-05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68.tar.bz2 fork-ledger-05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68.zip |
fixed account display bug
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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, |