diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-25 13:17:36 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:26 -0400 |
commit | 70b3eda8d13fd6f8805791b52c1191619cf1fc03 (patch) | |
tree | 507771356689066b331fdff138b539c287d2306d /journal.h | |
parent | 88a895a4944efcae0f7dbc7e7d73bef817cd317e (diff) | |
download | fork-ledger-70b3eda8d13fd6f8805791b52c1191619cf1fc03.tar.gz fork-ledger-70b3eda8d13fd6f8805791b52c1191619cf1fc03.tar.bz2 fork-ledger-70b3eda8d13fd6f8805791b52c1191619cf1fc03.zip |
*** no comment ***
Diffstat (limited to 'journal.h')
-rw-r--r-- | journal.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -22,6 +22,7 @@ namespace ledger { #define TRANSACTION_BALANCE 0x0002 #define TRANSACTION_AUTO 0x0004 #define TRANSACTION_BULK_ALLOC 0x0008 +#define TRANSACTION_CALCULATED 0x0010 class entry_t; class account_t; @@ -132,10 +133,18 @@ class entry_base_t #endif transactions_list transactions; - entry_base_t() : journal(NULL) { + entry_base_t() : journal(NULL), +#ifdef USE_EDITOR + beg_pos(0), beg_line(0), end_pos(0), end_line(0) +#endif + { DEBUG_PRINT("ledger.memory.ctors", "ctor entry_base_t"); } - entry_base_t(const entry_base_t& e) : journal(NULL) { + entry_base_t(const entry_base_t& e) : journal(NULL), +#ifdef USE_EDITOR + beg_pos(0), beg_line(0), end_pos(0), end_line(0) +#endif + { DEBUG_PRINT("ledger.memory.ctors", "ctor entry_base_t"); for (transactions_list::const_iterator i = e.transactions.begin(); i != e.transactions.end(); |