Rename dow_posts to day_of_week_posts, to be clearer
This commit is contained in:
parent
82e43fe125
commit
3a5653e365
3 changed files with 10 additions and 10 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue