diff options
Diffstat (limited to 'journal.h')
-rw-r--r-- | journal.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -40,7 +40,6 @@ class transaction_t amount_t amount; value_expr_t * amount_expr; amount_t * cost; - value_expr_t * cost_expr; state_t state; unsigned short flags; std::string note; @@ -54,9 +53,9 @@ class transaction_t transaction_t(account_t * _account = NULL) : entry(NULL), _date(0), _date_eff(0), account(_account), - amount_expr(NULL), cost(NULL), cost_expr(NULL), - state(UNCLEARED), flags(TRANSACTION_NORMAL), - beg_pos(0), beg_line(0), end_pos(0), end_line(0), data(NULL) { + amount_expr(NULL), cost(NULL), state(UNCLEARED), + flags(TRANSACTION_NORMAL), beg_pos(0), beg_line(0), + end_pos(0), end_line(0), data(NULL) { DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t"); } transaction_t(account_t * _account, @@ -64,7 +63,7 @@ class transaction_t unsigned int _flags = TRANSACTION_NORMAL, const std::string& _note = "") : entry(NULL), _date(0), _date_eff(0), account(_account), - amount(_amount), amount_expr(NULL), cost(NULL), cost_expr(NULL), + amount(_amount), amount_expr(NULL), cost(NULL), state(UNCLEARED), flags(_flags), note(_note), beg_pos(0), beg_line(0), end_pos(0), end_line(0), data(NULL) { DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t"); @@ -72,7 +71,7 @@ class transaction_t transaction_t(const transaction_t& xact) : entry(xact.entry), _date(0), _date_eff(0), account(xact.account), amount(xact.amount), amount_expr(NULL), - cost(xact.cost ? new amount_t(*xact.cost) : NULL), cost_expr(NULL), + cost(xact.cost ? new amount_t(*xact.cost) : NULL), state(xact.state), flags(xact.flags), note(xact.note), beg_pos(0), beg_line(0), end_pos(0), end_line(0), data(NULL) { DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t"); |