Changed a plain equality into a strcmp.
This commit is contained in:
parent
e4be662c51
commit
e293132729
1 changed files with 6 additions and 1 deletions
|
|
@ -680,9 +680,14 @@ expr_t::ptr_op_t report_t::lookup(const string& name)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
if (name == "print_balance")
|
if (std::strcmp(p, "print_balance") == 0)
|
||||||
return WRAP_FUNCTOR(print_balance);
|
return WRAP_FUNCTOR(print_balance);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 't':
|
||||||
|
if (std::strcmp(p, "total_expr") == 0)
|
||||||
|
return MAKE_FUNCTOR(report_t::get_total_expr);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return session.lookup(name);
|
return session.lookup(name);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue