summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-10 00:57:29 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-10 00:57:29 -0400
commitc9d575abceb672d1c23383d973adee40daeecda8 (patch)
treedea80d45787359712e582cc7bf5d700a4419ec30 /src/account.h
parent65510c9a9f0d588a8d0285072dfc2e2a153e5253 (diff)
downloadfork-ledger-c9d575abceb672d1c23383d973adee40daeecda8.tar.gz
fork-ledger-c9d575abceb672d1c23383d973adee40daeecda8.tar.bz2
fork-ledger-c9d575abceb672d1c23383d973adee40daeecda8.zip
Basic balance reports are working again!
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/account.h b/src/account.h
index 7d35593c..83242583 100644
--- a/src/account.h
+++ b/src/account.h
@@ -46,6 +46,7 @@ class account_t : public scope_t
public:
typedef unsigned long ident_t;
+ session_t * owner;
account_t * parent;
string name;
optional<string> note;
@@ -56,15 +57,17 @@ class account_t : public scope_t
mutable ident_t ident;
mutable string _fullname;
- account_t(account_t * _parent = NULL,
+ account_t(session_t * _owner,
+ account_t * _parent = NULL,
const string& _name = "",
const optional<string>& _note = none)
- : scope_t(), parent(_parent), name(_name), note(_note),
+ : scope_t(), owner(_owner), parent(_parent), name(_name), note(_note),
depth(parent ? parent->depth + 1 : 0), data(NULL), ident(0) {
TRACE_CTOR(account_t, "account_t *, const string&, const string&");
}
account_t(const account_t& other)
: scope_t(),
+ owner(other.owner),
parent(other.parent),
name(other.name),
note(other.note),