diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-20 18:59:30 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-20 20:29:56 -0400 |
commit | 3a5653e365b1572ee43fbfb8213edd1083de97cd (patch) | |
tree | 7e0923dca821db7121667b20e73a40106e992d70 | |
parent | 82e43fe125a9b2158976fe5a3afccfa85d7a7574 (diff) | |
download | fork-ledger-3a5653e365b1572ee43fbfb8213edd1083de97cd.tar.gz fork-ledger-3a5653e365b1572ee43fbfb8213edd1083de97cd.tar.bz2 fork-ledger-3a5653e365b1572ee43fbfb8213edd1083de97cd.zip |
Rename dow_posts to day_of_week_posts, to be clearer
-rw-r--r-- | src/chain.cc | 6 | ||||
-rw-r--r-- | src/filters.cc | 2 | ||||
-rw-r--r-- | src/filters.h | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/chain.cc b/src/chain.cc index 228c3fec..67f2c8d5 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -202,8 +202,8 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler, // period_posts is like subtotal_posts, but it subtotals according to time // periods rather than totalling everything. // - // dow_posts is like period_posts, except that it reports all the posts - // that fall on each subsequent day of the week. + // day_of_week_posts is like period_posts, except that it reports + // all the posts that fall on each subsequent day of the week. if (report.HANDLED(equity)) handler.reset(new posts_as_equity(handler, expr)); else if (report.HANDLED(subtotal)) @@ -211,7 +211,7 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler, } if (report.HANDLED(dow)) - handler.reset(new dow_posts(handler, expr)); + handler.reset(new day_of_week_posts(handler, expr)); else if (report.HANDLED(by_payee)) handler.reset(new by_payee_posts(handler, expr)); diff --git a/src/filters.cc b/src/filters.cc index 9e06fb8b..4adf7203 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -1113,7 +1113,7 @@ void transfer_details::operator()(post_t& post) item_handler<post_t>::operator()(temp); } -void dow_posts::flush() +void day_of_week_posts::flush() { for (int i = 0; i < 7; i++) { foreach (post_t * post, days_of_the_week[i]) diff --git a/src/filters.h b/src/filters.h index 72e8f19f..76648bee 100644 --- a/src/filters.h +++ b/src/filters.h @@ -813,19 +813,19 @@ public: } }; -class dow_posts : public subtotal_posts +class day_of_week_posts : public subtotal_posts { posts_list days_of_the_week[7]; - dow_posts(); + day_of_week_posts(); public: - dow_posts(post_handler_ptr handler, expr_t& amount_expr) + day_of_week_posts(post_handler_ptr handler, expr_t& amount_expr) : subtotal_posts(handler, amount_expr) { - TRACE_CTOR(dow_posts, "post_handler_ptr, bool"); + TRACE_CTOR(day_of_week_posts, "post_handler_ptr, bool"); } - virtual ~dow_posts() throw() { - TRACE_DTOR(dow_posts); + virtual ~day_of_week_posts() throw() { + TRACE_DTOR(day_of_week_posts); } virtual void flush(); |