summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-19 21:11:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:31 -0400
commit32bdfe20d98f1c8e6c0aabe9b26f0507326d2baa (patch)
tree50a4c5490f842ff4241ed6c574d3debd0ed6e1b6 /format.h
parentab748ed13ed87369e2e4ed5a617b5de12750fda6 (diff)
downloadledger-32bdfe20d98f1c8e6c0aabe9b26f0507326d2baa.tar.gz
ledger-32bdfe20d98f1c8e6c0aabe9b26f0507326d2baa.tar.bz2
ledger-32bdfe20d98f1c8e6c0aabe9b26f0507326d2baa.zip
Tons of corrections and fixes to value expressions and lot figures.
Diffstat (limited to 'format.h')
-rw-r--r--format.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/format.h b/format.h
index df9d2dcc..ccbb0f42 100644
--- a/format.h
+++ b/format.h
@@ -53,19 +53,17 @@ struct element_t
std::string chars;
unsigned char min_width;
unsigned char max_width;
- value_expr * val_expr;
+ value_expr val_expr;
struct element_t * next;
element_t() : type(STRING), flags(false),
- min_width(0), max_width(0),
- val_expr(NULL), next(NULL) {
+ min_width(0), max_width(0), next(NULL) {
DEBUG_PRINT("ledger.memory.ctors", "ctor element_t");
}
~element_t() {
DEBUG_PRINT("ledger.memory.dtors", "dtor element_t");
- if (val_expr) delete val_expr;
if (next) delete next; // recursive, but not too deep
}
};