summaryrefslogtreecommitdiff
path: root/src/xact.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-03 19:06:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-03 19:06:56 -0400
commit2e9c14ef30fb8c811c30cab4c192c59462a431ab (patch)
treebdf62ed283894376db52ffaea78c6f0c21c9d9ed /src/xact.h
parentbee8e501664decec2bbae63df58ab1fedc240354 (diff)
downloadledger-2e9c14ef30fb8c811c30cab4c192c59462a431ab.tar.gz
ledger-2e9c14ef30fb8c811c30cab4c192c59462a431ab.tar.bz2
ledger-2e9c14ef30fb8c811c30cab4c192c59462a431ab.zip
Don't store the amount expression object in transactions.
This is unnecessary since binary caching is no longer being used.
Diffstat (limited to 'src/xact.h')
-rw-r--r--src/xact.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xact.h b/src/xact.h
index 5e55005d..736eaa27 100644
--- a/src/xact.h
+++ b/src/xact.h
@@ -73,11 +73,17 @@ public:
account_t * account;
amount_t amount; // can be null until finalization
+#if defined(STORE_XACT_EXPRS)
optional<expr_t> amount_expr;
+#endif
optional<amount_t> cost;
+#if defined(STORE_XACT_EXPRS)
optional<expr_t> cost_expr;
+#endif
optional<amount_t> assigned_amount;
+#if defined(STORE_XACT_EXPRS)
optional<expr_t> assigned_amount_expr;
+#endif
xact_t(account_t * _account = NULL,
flags_t _flags = ITEM_NORMAL)