From 3038b7cee82bd7db5f19827a7db12aa7524438f3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 24 Sep 2004 04:56:46 -0400 Subject: finalizer fixes; removed use of timing.h from main.cc --- textual.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index ac205441..1916860a 100644 --- a/textual.cc +++ b/textual.cc @@ -431,8 +431,7 @@ unsigned int textual_parser_t::parse(std::istream& in, case '=': // automated transactions if (! added_autoxact_hook) { - add_hook(journal->entry_finalize_hooks, - &autoxact_finalizer); + journal->add_entry_finalizer(&autoxact_finalizer); added_autoxact_hook = true; } parse_automated_transactions(in, account_stack.front(), @@ -495,8 +494,8 @@ unsigned int textual_parser_t::parse(std::istream& in, done: if (added_autoxact_hook) - remove_hook(journal->entry_finalize_hooks, - &autoxact_finalizer); + journal->remove_entry_finalizer(&autoxact_finalizer); + if (time_commodity) { time_commodity->precision = 2; time_commodity->flags |= COMMODITY_STYLE_NOMARKET; -- cgit v1.2.3