From aba3d3037a43f4c244b4065b7fd70a6f1d5656de Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Aug 2004 17:55:33 -0400 Subject: added support for parsing QIF files --- gnucash.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnucash.cc') diff --git a/gnucash.cc b/gnucash.cc index 011889fd..c7635f11 100644 --- a/gnucash.cc +++ b/gnucash.cc @@ -1,8 +1,8 @@ +#include "ledger.h" + #include #include -#include "ledger.h" - extern "C" { #include // expat XML parser } @@ -85,7 +85,7 @@ static void startElement(void *userData, const char *name, const char **atts) action = ENTRY_DESC; else if (std::strcmp(name, "trn:split") == 0) { assert(curr_entry); - curr_entry->add_transaction(new transaction_t(curr_entry, curr_account)); + curr_entry->add_transaction(new transaction_t(curr_account)); } else if (std::strcmp(name, "split:reconciled-state") == 0) action = XACT_STATE; -- cgit v1.2.3