(class transaction_t): Initialize _date_eff to zero.
This commit is contained in:
parent
00fe8bc815
commit
7d1f07a2a7
1 changed files with 7 additions and 6 deletions
13
journal.h
13
journal.h
|
|
@ -45,8 +45,9 @@ class transaction_t
|
||||||
static bool use_effective_date;
|
static bool use_effective_date;
|
||||||
|
|
||||||
transaction_t(account_t * _account = NULL)
|
transaction_t(account_t * _account = NULL)
|
||||||
: entry(NULL), _date(0), account(_account), cost(NULL),
|
: entry(NULL), _date(0), _date_eff(0), account(_account),
|
||||||
state(UNCLEARED), flags(TRANSACTION_NORMAL), data(NULL) {
|
cost(NULL), state(UNCLEARED), flags(TRANSACTION_NORMAL),
|
||||||
|
data(NULL) {
|
||||||
DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t");
|
DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -54,15 +55,15 @@ class transaction_t
|
||||||
const amount_t& _amount,
|
const amount_t& _amount,
|
||||||
unsigned int _flags = TRANSACTION_NORMAL,
|
unsigned int _flags = TRANSACTION_NORMAL,
|
||||||
const std::string& _note = "")
|
const std::string& _note = "")
|
||||||
: entry(NULL), _date(0), account(_account), amount(_amount),
|
: entry(NULL), _date(0), _date_eff(0), account(_account),
|
||||||
cost(NULL), state(UNCLEARED), flags(_flags),
|
amount(_amount), cost(NULL), state(UNCLEARED), flags(_flags),
|
||||||
note(_note), data(NULL) {
|
note(_note), data(NULL) {
|
||||||
DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t");
|
DEBUG_PRINT("ledger.memory.ctors", "ctor transaction_t");
|
||||||
}
|
}
|
||||||
|
|
||||||
transaction_t(const transaction_t& xact)
|
transaction_t(const transaction_t& xact)
|
||||||
: entry(xact.entry), _date(0), account(xact.account),
|
: entry(xact.entry), _date(0), _date_eff(0),
|
||||||
amount(xact.amount),
|
account(xact.account), amount(xact.amount),
|
||||||
cost(xact.cost ? new amount_t(*xact.cost) : NULL),
|
cost(xact.cost ? new amount_t(*xact.cost) : NULL),
|
||||||
state(xact.state), flags(xact.flags), note(xact.note),
|
state(xact.state), flags(xact.flags), note(xact.note),
|
||||||
data(NULL) {
|
data(NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue