summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-19 17:55:33 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-19 17:55:33 -0400
commitaba3d3037a43f4c244b4065b7fd70a6f1d5656de (patch)
treeeaa48c8cdb91852cd440b0c246f38ed790f7e5ee /gnucash.cc
parentbf923ab33e9951d25611cb7193d6852e9113d929 (diff)
downloadfork-ledger-aba3d3037a43f4c244b4065b7fd70a6f1d5656de.tar.gz
fork-ledger-aba3d3037a43f4c244b4065b7fd70a6f1d5656de.tar.bz2
fork-ledger-aba3d3037a43f4c244b4065b7fd70a6f1d5656de.zip
added support for parsing QIF files
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc6
1 files changed, 3 insertions, 3 deletions
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 <sstream>
#include <cstring>
-#include "ledger.h"
-
extern "C" {
#include <xmlparse.h> // 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;