diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-06 02:52:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-06 02:52:14 -0400 |
commit | 4a0f5f9034dc24c7ae5f0464d407f4cf2279558b (patch) | |
tree | b7a4fa4659d366b34e8ecb25267ec2ea9c11f93c /src/filters.h | |
parent | 80c51bf0a524ed80c0c248374a75e7fc392e1a3d (diff) | |
parent | aff490534a8e7826d89bbc75c6885b4a6bff4d17 (diff) | |
download | fork-ledger-4a0f5f9034dc24c7ae5f0464d407f4cf2279558b.tar.gz fork-ledger-4a0f5f9034dc24c7ae5f0464d407f4cf2279558b.tar.bz2 fork-ledger-4a0f5f9034dc24c7ae5f0464d407f4cf2279558b.zip |
Merge branch 'next'
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 29 |
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() { |