Fixes for variable shadowing (14/28)

This commit is contained in:
John Wiegley 2012-02-17 14:28:33 -06:00
parent 3ce3aaf025
commit 3fd0c4229c

View file

@ -902,13 +902,13 @@ void subtotal_posts::operator()(post_t& post)
post.reported_account()->xdata().add_flags(ACCOUNT_EXT_HAS_UNB_VIRTUALS);
}
void interval_posts::report_subtotal(const date_interval_t& interval)
void interval_posts::report_subtotal(const date_interval_t& ival)
{
if (last_post && interval) {
if (last_post && ival) {
if (exact_periods)
subtotal_posts::report_subtotal();
else
subtotal_posts::report_subtotal(NULL, interval);
subtotal_posts::report_subtotal(NULL, ival);
}
last_post = NULL;