summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-18 11:42:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-18 11:42:43 -0400
commite29313272907faf269bea7205a0dceb48ffdf668 (patch)
tree652161a030a8e9963773c02cdf174eb7cf747167 /src
parente4be662c513f95a19dc30c2b32cd89968e16d09d (diff)
downloadfork-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.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);