From 8aeb7f59e1da79411c02d1c502d4e7331733e2a0 Mon Sep 17 00:00:00 2001 From: Teddy Date: Thu, 15 Aug 2013 13:53:59 +0800 Subject: ... --- model.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'model.cpp') diff --git a/model.cpp b/model.cpp index 32c79d0..ba664a8 100644 --- a/model.cpp +++ b/model.cpp @@ -23,13 +23,9 @@ bool FrameObj::is_parse_bracket() { return ftype & CLS_PAR_BRA; } -bool EvalObj::gc_dec() { return --gc_cnt == 0; } -void EvalObj::gc_inc() { gc_cnt++; } -size_t EvalObj::gc_get_cnt() { return gc_cnt; } - EvalObj::EvalObj(int _otype) : - FrameObj(CLS_EVAL_OBJ), gc_cnt(0), otype(_otype) { - gc.join(this); + FrameObj(CLS_EVAL_OBJ), otype(_otype) { + gc_obj = gc.join(this); } EvalObj::~EvalObj() { -- cgit v1.2.3