summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-24 04:56:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-24 04:56:46 -0400
commit3038b7cee82bd7db5f19827a7db12aa7524438f3 (patch)
tree3a8521fcd5e97196967319abb6ede27a0278d882 /textual.cc
parent4f56735dfa83b4415be52793bcc99fa4623b69a5 (diff)
downloadfork-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.cc7
1 files changed, 3 insertions, 4 deletions
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<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;