summaryrefslogtreecommitdiff
path: root/valexpr.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-03 09:45:44 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:28 -0400
commit96d6d62ad94082ca777c2c88b88e0346a5d00e65 (patch)
treeb50a26a9c4c0cc0ab90b1772cc75368739501fa5 /valexpr.h
parent7d3e45958e805f8acaf399ef14d53757979240ab (diff)
downloadfork-ledger-96d6d62ad94082ca777c2c88b88e0346a5d00e65.tar.gz
fork-ledger-96d6d62ad94082ca777c2c88b88e0346a5d00e65.tar.bz2
fork-ledger-96d6d62ad94082ca777c2c88b88e0346a5d00e65.zip
Began support for improved commodity handling.
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);
}