From e29313272907faf269bea7205a0dceb48ffdf668 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 18 Sep 2008 11:42:43 -0400 Subject: Changed a plain equality into a strcmp. --- src/report.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3