diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 20:59:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 21:00:30 -0400 |
commit | e3b44038b389461162e4920a26b09c0df9cf83b6 (patch) | |
tree | 1535a0effcea6930e4d4bae0b411e8735f558744 /src | |
parent | db0689f547593f6904208939f21981a84c73b2c5 (diff) | |
download | fork-ledger-e3b44038b389461162e4920a26b09c0df9cf83b6.tar.gz fork-ledger-e3b44038b389461162e4920a26b09c0df9cf83b6.tar.bz2 fork-ledger-e3b44038b389461162e4920a26b09c0df9cf83b6.zip |
Moved format_accounts::should_display out of line
Diffstat (limited to 'src')
-rw-r--r-- | src/output.cc | 9 | ||||
-rw-r--r-- | src/output.h | 8 |
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); |