summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters.h')
-rw-r--r--src/filters.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/filters.h b/src/filters.h
index 40119d6d..2222878e 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -382,7 +382,7 @@ class changed_value_posts : public item_handler<post_t>
post_t * last_post;
value_t last_total;
value_t last_display_total;
- temporaries_t temps;
+ temporaries_t temps;
account_t& revalued_account;
account_t& rounding_account;
@@ -390,28 +390,16 @@ class changed_value_posts : public item_handler<post_t>
public:
changed_value_posts(post_handler_ptr handler,
- const expr_t& _display_amount_expr,
- const expr_t& _total_expr,
- const expr_t& _display_total_expr,
- report_t& _report,
- bool _changed_values_only)
- : item_handler<post_t>(handler),
- display_amount_expr(_display_amount_expr), total_expr(_total_expr),
- display_total_expr(_display_total_expr), report(_report),
- changed_values_only(_changed_values_only), last_post(NULL),
- revalued_account(temps.create_account(_("<Revalued>"))),
- rounding_account(temps.create_account(_("<Rounding>"))) {
- TRACE_CTOR(changed_value_posts,
- "post_handler_ptr, const expr_t&, const expr_t&, report_t&, bool");
- }
+ report_t& _report);
+
virtual ~changed_value_posts() {
TRACE_DTOR(changed_value_posts);
}
virtual void flush();
- void output_revaluation(post_t * post, const date_t& current);
- void output_rounding(post_t * post);
+ void output_revaluation(post_t& post, const date_t& current);
+ void output_rounding(post_t& post);
virtual void operator()(post_t& post);
};