diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-18 11:42:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-18 11:42:43 -0400 |
commit | e29313272907faf269bea7205a0dceb48ffdf668 (patch) | |
tree | 652161a030a8e9963773c02cdf174eb7cf747167 /src | |
parent | e4be662c513f95a19dc30c2b32cd89968e16d09d (diff) | |
download | fork-ledger-e29313272907faf269bea7205a0dceb48ffdf668.tar.gz fork-ledger-e29313272907faf269bea7205a0dceb48ffdf668.tar.bz2 fork-ledger-e29313272907faf269bea7205a0dceb48ffdf668.zip |
Changed a plain equality into a strcmp.
Diffstat (limited to 'src')
-rw-r--r-- | src/report.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc index 743ddf71..553fe0f8 100644 --- a/src/report.cc +++ b/src/report.cc @@ -680,9 +680,14 @@ expr_t::ptr_op_t report_t::lookup(const string& name) break; case 'p': - if (name == "print_balance") + if (std::strcmp(p, "print_balance") == 0) return WRAP_FUNCTOR(print_balance); break; + + case 't': + if (std::strcmp(p, "total_expr") == 0) + return MAKE_FUNCTOR(report_t::get_total_expr); + break; } return session.lookup(name); |