summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-18 23:13:33 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-18 23:13:33 -0500
commit539887b3fbbb28e67f61437817dd617607724897 (patch)
tree303498131d8dd3df2ccda4d86174fa4cc9efb1a1 /src/chain.cc
parentcd284f98c8d1cb13de4b6f29a1d98db8893a024f (diff)
downloadfork-ledger-539887b3fbbb28e67f61437817dd617607724897.tar.gz
fork-ledger-539887b3fbbb28e67f61437817dd617607724897.tar.bz2
fork-ledger-539887b3fbbb28e67f61437817dd617607724897.zip
Changed only_preliminaries to for_accounts_report
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 55ef467b..479f9812 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -41,7 +41,7 @@ namespace ledger {
post_handler_ptr chain_post_handlers(report_t& report,
post_handler_ptr base_handler,
- bool only_preliminaries)
+ bool for_accounts_report)
{
post_handler_ptr handler(base_handler);
predicate_t display_predicate;
@@ -51,7 +51,7 @@ post_handler_ptr chain_post_handlers(report_t& report,
expr_t& expr(report.HANDLER(amount_).expr);
expr.set_context(&report);
- if (! only_preliminaries) {
+ if (! for_accounts_report) {
// Make sure only forecast postings which match are allowed through
if (report.HANDLED(forecast_while_)) {
handler.reset(new filter_posts
@@ -95,7 +95,7 @@ post_handler_ptr chain_post_handlers(report_t& report,
// calc_posts computes the running total. When this appears will determine,
// for example, whether filtered posts are included or excluded from the
// running total.
- handler.reset(new calc_posts(handler, expr, only_preliminaries));
+ handler.reset(new calc_posts(handler, expr));
// filter_posts will only pass through posts matching the
// `secondary_predicate'.
@@ -105,7 +105,7 @@ post_handler_ptr chain_post_handlers(report_t& report,
handler.reset(new filter_posts(handler, only_predicate, report));
}
- if (! only_preliminaries) {
+ if (! for_accounts_report) {
// sort_posts will sort all the posts it sees, based on the `sort_order'
// value expression.
if (report.HANDLED(sort_)) {