summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-17 03:15:57 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-17 03:15:57 -0400
commit891d7b87c8bd9c2387a945a22b41f9b8f94f3327 (patch)
tree8d4ca5757a923d80bf82f625a16746aac68a0043 /src/op.h
parent650527bef8bdac0edf08b383f6d721ca19aee5b1 (diff)
downloadfork-ledger-891d7b87c8bd9c2387a945a22b41f9b8f94f3327.tar.gz
fork-ledger-891d7b87c8bd9c2387a945a22b41f9b8f94f3327.tar.bz2
fork-ledger-891d7b87c8bd9c2387a945a22b41f9b8f94f3327.zip
Removed some dead code and updated the binary streaming code for op_t and
value_t.
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/op.h b/src/op.h
index 1d0de121..17cb2f38 100644
--- a/src/op.h
+++ b/src/op.h
@@ -42,8 +42,6 @@ class expr_t::op_t : public noncopyable
friend class expr_t;
friend class expr_t::parser_t;
- op_t();
-
public:
typedef expr_t::ptr_op_t ptr_op_t;
@@ -106,11 +104,16 @@ public:
OPERATORS,
+ UNKNOWN,
+
LAST
};
kind_t kind;
+ explicit op_t() : refc(0), kind(UNKNOWN) {
+ TRACE_CTOR(op_t, "");
+ }
explicit op_t(const kind_t _kind) : refc(0), kind(_kind) {
TRACE_CTOR(op_t, "const kind_t");
}