From 63f9d97ddaf26283b5f8a154abae937dca05d290 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Feb 2009 20:06:25 -0400 Subject: [PATCH] Correctly compile the expressions passed to -t and -T. --- src/report.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/report.h b/src/report.h index 8bcd6b57..418ac0e2 100644 --- a/src/report.h +++ b/src/report.h @@ -186,6 +186,9 @@ public: expr_t expr; CTOR(report_t, amount_) { expr = "amount"; + } + DO_(args) { + expr = args[0].to_string(); }); OPTION(report_t, amount_data); // -j @@ -242,6 +245,9 @@ public: expr_t expr; CTOR(report_t, display_amount_) { expr = "amount_expr"; + } + DO_(args) { + expr = args[0].to_string(); }); OPTION__ @@ -249,6 +255,9 @@ public: expr_t expr; CTOR(report_t, display_total_) { expr = "total_expr"; + } + DO_(args) { + expr = args[0].to_string(); }); OPTION(report_t, dow); @@ -357,6 +366,9 @@ public: expr_t expr; CTOR(report_t, total_) { expr = "total"; + } + DO_(args) { + expr = args[0].to_string(); }); OPTION(report_t, total_data); // -J