Moved format_accounts::should_display out of line

This commit is contained in:
John Wiegley 2009-02-16 20:59:22 -04:00
parent db0689f547
commit e3b44038b3
2 changed files with 10 additions and 7 deletions

View file

@ -210,6 +210,15 @@ void format_entries::operator()(xact_t& xact)
last_entry = xact.entry;
}
bool format_accounts::should_display(account_t& account)
{
if (! disp_pred.predicate && report.HANDLED(display_))
disp_pred.predicate.parse(report.HANDLER(display_).str());
bind_scope_t bound_scope(report, account);
return disp_pred(bound_scope);
}
void format_accounts::flush()
{
std::ostream& out(report.output_stream);

View file

@ -181,13 +181,7 @@ public:
TRACE_DTOR(format_accounts);
}
bool should_display(account_t& account) {
if (! disp_pred.predicate && report.HANDLED(display_))
disp_pred.predicate.parse(report.HANDLER(display_).str());
bind_scope_t bound_scope(report, account);
return disp_pred(bound_scope);
}
bool should_display(account_t& account);
virtual void flush();
virtual void operator()(account_t& account);