diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-30 19:03:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-30 19:03:28 -0400 |
commit | 63aa8992a81dfaececa4a9b38ba8daf29b57912e (patch) | |
tree | 808871837734f3779c369e71774f30fde7d89034 /src/chain.cc | |
parent | a3799eebdb682162eb1edb3706a6ff1097b12f41 (diff) | |
download | fork-ledger-63aa8992a81dfaececa4a9b38ba8daf29b57912e.tar.gz fork-ledger-63aa8992a81dfaececa4a9b38ba8daf29b57912e.tar.bz2 fork-ledger-63aa8992a81dfaececa4a9b38ba8daf29b57912e.zip |
Moved ownership of master account into journal_t
The journal_t now completely represents the data part of a session.
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/chain.cc b/src/chain.cc index 018b3812..d7d1460b 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -223,33 +223,33 @@ post_handler_ptr chain_post_handlers(report_t& report, if (report.HANDLED(set_account_)) handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT, - report.session.master.get(), + report.session.journal->master, report.HANDLER(set_account_).str(), report)); else if (report.HANDLED(set_payee_)) handler.reset(new transfer_details(handler, transfer_details::SET_PAYEE, - report.session.master.get(), + report.session.journal->master, report.HANDLER(set_payee_).str(), report)); else if (report.HANDLED(comm_as_payee)) handler.reset(new transfer_details(handler, transfer_details::SET_PAYEE, - report.session.master.get(), + report.session.journal->master, expr_t("commodity"), report)); else if (report.HANDLED(code_as_payee)) handler.reset(new transfer_details(handler, transfer_details::SET_PAYEE, - report.session.master.get(), + report.session.journal->master, expr_t("code"), report)); else if (report.HANDLED(payee_as_account)) handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT, - report.session.master.get(), + report.session.journal->master, expr_t("payee"), report)); else if (report.HANDLED(comm_as_account)) handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT, - report.session.master.get(), + report.session.journal->master, expr_t("commodity"), report)); else if (report.HANDLED(code_as_account)) handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT, - report.session.master.get(), + report.session.journal->master, expr_t("code"), report)); return handler; |