summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-23 21:08:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-23 21:08:42 -0400
commitc57bfb72c3fd0c40bab1c47503c7f22c6a79a643 (patch)
tree4b3965e5df8bc9a5c58160f6ac8e08a542466df0 /main.cc
parent02580c2efbad9b364ab0dfa535c5fe0577cb818d (diff)
downloadfork-ledger-c57bfb72c3fd0c40bab1c47503c7f22c6a79a643.tar.gz
fork-ledger-c57bfb72c3fd0c40bab1c47503c7f22c6a79a643.tar.bz2
fork-ledger-c57bfb72c3fd0c40bab1c47503c7f22c6a79a643.zip
moved entry hooking mechanism to journal_t; further improvements to "entry"
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index 639a565c..e0f6c883 100644
--- a/main.cc
+++ b/main.cc
@@ -164,6 +164,8 @@ int parse_and_report(int argc, char * argv[], char * envp[])
{
std::auto_ptr<journal_t> journal(new journal_t);
+ add_hook(journal->entry_finalize_hooks, handle_auto_xacts);
+
// Parse command-line arguments, and those set in the environment
TIMER_START(process_opts);
@@ -224,7 +226,6 @@ int parse_and_report(int argc, char * argv[], char * envp[])
#endif
std::auto_ptr<qif_parser_t> qif_parser(new qif_parser_t);
std::auto_ptr<textual_parser_t> text_parser(new textual_parser_t);
- text_parser->add_finalize_hook(handle_auto_xacts);
register_parser(bin_parser.get());
#ifdef READ_GNUCASH