summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/output.cc9
-rw-r--r--src/output.h8
2 files changed, 10 insertions, 7 deletions
diff --git a/src/output.cc b/src/output.cc
index e314d5da..b9af9a27 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -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);
diff --git a/src/output.h b/src/output.h
index fad05857..d62a77b1 100644
--- a/src/output.h
+++ b/src/output.h
@@ -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);