Changed a plain equality into a strcmp.

This commit is contained in:
John Wiegley 2008-09-18 11:42:43 -04:00
parent e4be662c51
commit e293132729

View file

@ -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);