From 86941556b8e711052f2841fbd1f87310ae46093e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 22 Jun 2005 23:04:46 +0000 Subject: [PATCH] (class journal_t): Added a "basket" account member, which if set is the account to which all single-transaction entries are balanced. --- journal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/journal.h b/journal.h index 7b288d33..435569ba 100644 --- a/journal.h +++ b/journal.h @@ -320,6 +320,7 @@ class journal_t { public: account_t * master; + account_t * basket; entries_list entries; strings_list sources; std::string price_db; @@ -332,7 +333,7 @@ class journal_t std::list entry_finalize_hooks; - journal_t() { + journal_t() : basket(NULL) { DEBUG_PRINT("ledger.memory.ctors", "ctor journal_t"); master = new account_t(NULL, ""); master->journal = this;