summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/report.cc7
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);