From c9d575abceb672d1c23383d973adee40daeecda8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 10 Aug 2008 00:57:29 -0400 Subject: Basic balance reports are working again! --- src/account.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/account.h') 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 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& _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), -- cgit v1.2.3