aboutsummaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-13 20:44:03 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-13 20:44:03 +0800
commit9982fba5f471944a2e5ab1edac97c971eb557416 (patch)
treee3a7f37b00d9034b807024eb232eefb9d1659540 /model.cpp
parentcfb7f91f0153250b009a68b076ef4d1e6f12c4eb (diff)
fixed a mem leak in parser.cpp
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/model.cpp b/model.cpp
index cb3d5c6..416c583 100644
--- a/model.cpp
+++ b/model.cpp
@@ -27,6 +27,10 @@ bool FrameObj::is_parse_bracket() {
EvalObj::EvalObj(int _otype) : FrameObj(CLS_EVAL_OBJ), otype(_otype) {}
+bool EvalObj::is_container() {
+ return otype & CLS_CONTAINER;
+}
+
void EvalObj::prepare(Pair *pc) {}
bool EvalObj::is_simple_obj() {