summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters.h')
-rw-r--r--src/filters.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/filters.h b/src/filters.h
index 68df6e06..d3968c51 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -82,29 +82,6 @@ public:
}
};
-/**
- * @brief Brief
- *
- * Long.
- */
-class unround_posts : public item_handler<post_t>
-{
-public:
- unround_posts(post_handler_ptr handler)
- : item_handler<post_t>(handler) {
- TRACE_CTOR(unround_posts, "posts_list&");
- }
- virtual ~unround_posts() {
- TRACE_DTOR(unround_posts);
- }
-
- virtual void operator()(post_t& post) {
- post.xdata().value = post.amount.unrounded();
- post.xdata().add_flags(POST_EXT_COMPOUND);
- item_handler<post_t>::operator()(post);
- }
-};
-
class posts_iterator;
/**
@@ -342,16 +319,16 @@ class calc_posts : public item_handler<post_t>
{
post_t * last_post;
expr_t& amount_expr;
- bool calc_totals;
+ bool account_wise;
calc_posts();
public:
calc_posts(post_handler_ptr handler,
expr_t& _amount_expr,
- bool _calc_totals = false)
+ bool _account_wise = false)
: item_handler<post_t>(handler), last_post(NULL),
- amount_expr(_amount_expr), calc_totals(_calc_totals) {
+ amount_expr(_amount_expr), account_wise(_account_wise) {
TRACE_CTOR(calc_posts, "post_handler_ptr, expr_t&, bool");
}
virtual ~calc_posts() {