From 96d6d62ad94082ca777c2c88b88e0346a5d00e65 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 3 Mar 2006 09:45:44 +0000 Subject: Began support for improved commodity handling. --- valexpr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'valexpr.h') diff --git a/valexpr.h b/valexpr.h index b91dd460..58eb4c99 100644 --- a/valexpr.h +++ b/valexpr.h @@ -349,7 +349,7 @@ public: } virtual ~value_expr() { DEBUG_PRINT("ledger.memory.dtors", "dtor value_expr"); - if (parsed != NULL) + if (parsed) parsed->release(); } @@ -363,12 +363,12 @@ extern std::auto_ptr amount_expr; extern std::auto_ptr total_expr; inline void compute_amount(value_t& result, const details_t& details) { - if (amount_expr.get() != NULL) + if (amount_expr.get()) amount_expr->compute(result, details); } inline void compute_total(value_t& result, const details_t& details) { - if (total_expr.get() != NULL) + if (total_expr.get()) total_expr->compute(result, details); } -- cgit v1.2.3