From fdc7a4e4c5423e79df4ad8905b5a67d45d2f85bc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 19 Sep 2008 08:06:20 -0400 Subject: Factored common parts of entry_t and xact_t into new item_t --- src/gnucash.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gnucash.cc') 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; -- cgit v1.2.3