diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-19 08:06:20 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-19 08:06:20 -0400 |
commit | fdc7a4e4c5423e79df4ad8905b5a67d45d2f85bc (patch) | |
tree | b7aa301f7d884315f00c42903778ea549e7833d7 /src/account.h | |
parent | 43ba0bb03807eea3fdcd4dd40fba10b00f823e24 (diff) | |
download | fork-ledger-fdc7a4e4c5423e79df4ad8905b5a67d45d2f85bc.tar.gz fork-ledger-fdc7a4e4c5423e79df4ad8905b5a67d45d2f85bc.tar.bz2 fork-ledger-fdc7a4e4c5423e79df4ad8905b5a67d45d2f85bc.zip |
Factored common parts of entry_t and xact_t into new item_t
Diffstat (limited to 'src/account.h')
-rw-r--r-- | src/account.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/account.h b/src/account.h index 6bd11704..ff79e3be 100644 --- a/src/account.h +++ b/src/account.h @@ -47,7 +47,6 @@ class account_t : public scope_t public: typedef unsigned long ident_t; - session_t * owner; account_t * parent; string name; optional<string> note; @@ -58,17 +57,15 @@ class account_t : public scope_t mutable ident_t ident; mutable string _fullname; - account_t(session_t * _owner, - account_t * _parent = NULL, + account_t(account_t * _parent = NULL, const string& _name = "", const optional<string>& _note = none) - : scope_t(), owner(_owner), parent(_parent), name(_name), note(_note), + : scope_t(), 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), |