From 3c7388918b2df7891a35b711e30ba492d1a6e9a8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 15 Feb 2009 17:07:43 -0400 Subject: Change a few calls to on() to use set_expr() --- src/report.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/report.h b/src/report.h index 9356deed..06a1e040 100644 --- a/src/report.h +++ b/src/report.h @@ -239,8 +239,7 @@ public: OPTION_(report_t, basis, DO() { // -B parent->HANDLER(revalued).off(); - parent->HANDLER(amount_).on("cost"); - parent->HANDLER(total_).on("total_cost"); + parent->HANDLER(amount_).set_expr("cost"); }); OPTION_(report_t, begin_, DO_(args) { // -b @@ -388,8 +387,8 @@ public: OPTION_(report_t, price, DO() { // -I parent->HANDLER(revalued).off(); - parent->HANDLER(amount_).on("price"); - parent->HANDLER(total_).on("total_price"); + parent->HANDLER(amount_).set_expr("price"); + parent->HANDLER(total_).set_expr("total_price"); }); OPTION(report_t, price_exp_); // -Z @@ -399,8 +398,8 @@ public: OPTION_(report_t, quantity, DO() { // -O parent->HANDLER(revalued).off(); - parent->HANDLER(amount_).on("amount"); - parent->HANDLER(total_).on("total"); + parent->HANDLER(amount_).set_expr("amount"); + parent->HANDLER(total_).set_expr("total"); }); OPTION_(report_t, quarterly, DO() { -- cgit v1.2.3