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/gnucash.cc | |
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/gnucash.cc')
-rw-r--r-- | src/gnucash.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnucash.cc b/src/gnucash.cc index 6b9b5211..e2ee113a 100644 --- a/src/gnucash.cc +++ b/src/gnucash.cc @@ -89,7 +89,7 @@ static enum action_t { static void startElement(void *, const char *name, const char **) { if (std::strcmp(name, "gnc:account") == 0) { - curr_account = new account_t(master_account->owner, master_account); + curr_account = new account_t(master_account); } else if (std::strcmp(name, "act:name") == 0) action = ACCOUNT_NAME; @@ -193,7 +193,7 @@ static void endElement(void *, const char *name) value = curr_quant; } - xact->state = curr_state; + xact->set_state(curr_state); xact->amount = value; if (value != curr_value) xact->cost = curr_value; |