summaryrefslogtreecommitdiff
path: root/valexpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'valexpr.h')
-rw-r--r--valexpr.h6
1 files changed, 3 insertions, 3 deletions
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<value_calc> amount_expr;
extern std::auto_ptr<value_calc> 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);
}