summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
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
}
};