summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-09 17:32:20 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-09 17:32:20 -0400
commit05b2cc46fdf6accd2ecbdc3c1ce86829bc7bfa68 (patch)
treeab61a5efdcdfe7bb73f346da5e45ac228d6458c0 /ledger.h
parent2dc822291f3ecef34eb0ef2920c395b0e056fbda (diff)
downloadfork-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.h20
1 files changed, 11 insertions, 9 deletions
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,