diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-24 04:56:46 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-24 04:56:46 -0400 |
commit | 3038b7cee82bd7db5f19827a7db12aa7524438f3 (patch) | |
tree | 3a8521fcd5e97196967319abb6ede27a0278d882 /textual.cc | |
parent | 4f56735dfa83b4415be52793bcc99fa4623b69a5 (diff) | |
download | fork-ledger-3038b7cee82bd7db5f19827a7db12aa7524438f3.tar.gz fork-ledger-3038b7cee82bd7db5f19827a7db12aa7524438f3.tar.bz2 fork-ledger-3038b7cee82bd7db5f19827a7db12aa7524438f3.zip |
finalizer fixes; removed use of timing.h from main.cc
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -431,8 +431,7 @@ unsigned int textual_parser_t::parse(std::istream& in, case '=': // automated transactions if (! added_autoxact_hook) { - add_hook<entry_finalizer_t *>(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<entry_finalizer_t *>(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; |